I want Jupyter to print all the interactive output without resorting to print, not only the last result. How to do it?
Example :
JavaScript
x
4
1
a=3
2
a
3
a+1
4
I would like to display
3
4
Advertisement
Answer
Thanks to Thomas, here is the solution I was looking for:
JavaScript
1
3
1
from IPython.core.interactiveshell import InteractiveShell
2
InteractiveShell.ast_node_interactivity = "all"
3