jupyter iPython web sit use 1

I want Jupyter to print all the interactive output without resorting to print, not only the last result. How to do it?
Example :

a=3
a
a+1

I would like to display

3
4

you can do as follow:

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

 

 
posted @ 2018-05-09 09:47  何帅  阅读(132)  评论(0编辑  收藏  举报