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')
More Related Contents:
- How do I increase the cell width of the Jupyter/ipython notebook in my browser?
- “ImportError: No module named” when trying to run Python script
- How do I get the current IPython / Jupyter Notebook name
- How to load/edit/run/save text files (.py) into an IPython notebook cell?
- Link Conda environment with Jupyter Notebook
- Installing a pip package from within a Jupyter Notebook not working
- Running Jupyter with multiple Python and IPython paths
- How to programmatically generate markdown output in Jupyter notebooks?
- How to close IPython Notebook properly?
- Simple way to measure cell execution time in ipython notebook
- How to disable password request for a Jupyter notebook session?
- How do I add a kernel on a remote machine in IPython (Jupyter) Notebook?
- How to make IPython notebook matplotlib plot inline
- Purpose of “%matplotlib inline”
- Configuring Spark to work with Jupyter Notebook and Anaconda
- How to display full output in Jupyter, not only last result?
- Autoreload of modules in IPython [duplicate]
- What is the currently correct way to dynamically update plots in Jupyter/iPython?
- R and Python in one Jupyter notebook
- Get Output From the logging Module in IPython Notebook
- Connecting to a remote IPython instance
- Programmatically get current IPython notebook cell output?
- How can I display an image from a file in Jupyter Notebook?
- Convert JSON IPython notebook (.ipynb) to .py file
- How to get ipywidgets working in Jupyter Lab?
- Share data between IPython Notebooks
- import a function from another .ipynb file
- Overwrite previous output in jupyter notebook
- Plotly chart not showing in Jupyter notebook
- What does In [*] in IPython Notebook mean and how to turn it off? [duplicate]