retagged by
6,351 views

1 Answer

Best answer
1 1 vote

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"

 

selected by

Related questions

1 1 vote
1 1 answer
1.1k
1.1k views
1 1 vote
1 answers 1 answer
6.8k
6.8k views
1 1 vote
1 1 answer
4.5k
4.5k views
askpython asked Oct 30, 2020
4,508 views
Whener I run Jupyter notebook there are some kernels that do not exist on system and generate errors. How can I remove them?
1 1 vote
1 1 answer
3.2k
3.2k views
tofighi asked Feb 27, 2020
3,187 views
How can I give access to others to view, comment or edit my Jupyter Notebook on Google Colab?
0 0 votes
1 1 answer
1.2k
1.2k views