from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" code example
Example: show all output jupyter notebook cells
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"