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

1 Answer

+1 vote
answered by (115k 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"

 

...