jupyter notebook/lab 默认输出只显示最后一行的变量
在文件的最上方添加:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
即可输出显示每行代码
如果要回复默认,改为如下即可:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "none"
来源:CSDN
作者:立志成为摄影师的健身虾
链接:https://blog.csdn.net/weekdawn/article/details/104194444