Add these two lines to the first cell and execute it before running other cells:
from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all"
424 questions
364 answers
99 comments
665 users