6,516 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
5.9k
5.9k views
1 1 vote
1 1 answer
743
743 views
0 0 votes
0 0 answers
533
533 views
Ziva asked Jul 31, 2020
533 views
https://ibb.co/MgXvrkL
1 1 vote
1 1 answer
4.1k
4.1k views
askpython asked Oct 30, 2020
4,050 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
2.8k
2.8k views
tofighi asked Feb 27, 2020
2,768 views
How can I give access to others to view, comment or edit my Jupyter Notebook on Google Colab?