【发布时间】:2016-08-15 15:58:10
【问题描述】:
我希望 Jupyter 打印所有交互式输出而不使用打印,而不仅仅是最后一个结果。怎么做?
例子:
a=3
a
a+1
我想显示
3
4
【问题讨论】:
-
它不经常使用,但实际上有一个配置选项应该这样做 - 在IPython kernel config file 中将
InteractiveShell.ast_node_interactivity设置为'all'。 -
谢谢你,Thomas,这就是我要找的 :)
-
它存在! ! !