How to display full output in Jupyter, not only last result?

mbh86 picture mbh86 · Apr 22, 2016 · Viewed 88.8k times · Source

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

Answer

mbh86 picture mbh86 · Apr 25, 2016

Thanks to Thomas, here is the solution I was looking for:

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