Issue
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
Solution
Thanks to Thomas, here is the solution I was looking for:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
Answered By - mbh86
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.