0
点赞
收藏
分享

微信扫一扫

jupyter notebook 保存内存对象

IT影子 2023-10-08 阅读 36

jupyter notebook 保存内存对象

 

 %store

 

 

 

I think Dill

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



举报

相关推荐

0 条评论