6,744 views

1 Answer

Best answer
1 1 vote

I think you need to use dill for this purpose. 
"dill extends python’s pickle module for serializing and de-serializing python objects to the majority of the built-in python types. Serialization is the process of converting an object to a byte stream, and the inverse of which is converting a byte stream back to on python object hierarchy."

conda install -c anaconda dill 

To save the Jupyter Notebook session:

import dill
dill.dump_session('notebook_session.db')

To restore the  session:

import dill
dill.load_session('notebook_session.db')

 

selected by

Related questions

1 1 vote
1 answers 1 answer
6.3k
6.3k views
1 1 vote
1 1 answer
994
994 views
0 0 votes
0 0 answers
695
695 views
Ziva asked Jul 31, 2020
695 views
https://ibb.co/MgXvrkL
1 1 vote
1 1 answer
4.4k
4.4k views
askpython asked Oct 30, 2020
4,382 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.1k
3.1k views
tofighi asked Feb 27, 2020
3,082 views
How can I give access to others to view, comment or edit my Jupyter Notebook on Google Colab?