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"
423 questions
363 answers
99 comments
549 users