jupyter notebook 保存内存对象
jupyter notebook 保存内存对象
%store foo >>a.txt
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')
TypeError: cannot pickle 'generator' object
backup = pd.HDFStore('backup.h5')
REF
https://levelup.gitconnected.com/how-to-store-variables-in-jupyter-notebook-fea8aa60a9b
https://predictivehacks.com/?all-tips=how-to-store-variables-in-jupyter-notebook
https://stackoverflow.com/questions/34342155/how-to-pickle-or-store-jupyter-ipython-notebook-session-for-later