其他分享
首页 > 其他分享> > Jupyter设置全部行输出

Jupyter设置全部行输出

作者:互联网

from IPython.core.interactiveshell import InteractiveShell 
InteractiveShell.ast_node_interactivity = "all"

上述代码表示,在输出结果时,以单元格为单位,令所有可以被输出的对象,依次进行输出。

标签:interactivity,输出,Jupyter,InteractiveShell,node,设置,IPython,import
来源: https://blog.csdn.net/FW173671849/article/details/121741988