First time here? Checkout the FAQ!
x
+1 vote
5k views
asked in Python by (116k points)  
retagged by
  

1 Answer

+1 vote
answered by (116k points)  
selected by
 
Best answer

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"

 

...