Let\'s say I am doing a larger data analysis in Jupyter/Ipython notebook with lots of time consuming computations done. Then, for some reason, I have to shut down the jupyte
I think Dill answers your question well.
pip install dill
Save a Notebook session:
import dill dill.dump_session('notebook_env.db')
Restore a Notebook session:
import dill dill.load_session('notebook_env.db')
Source