Issue
I recently discovered storemagic in ipython, and I would like to use it to save my work across sessions. However, in some sessions I generate a large number of variables, and I would like to say at the end of the session %store all, or something like that, so that I can easily %store -r and continue where I left off.
Is there any way I can do this? Note that I do not care much about the commands history and such, what I want is not to have to run the scripts over and over everytime ipython closes, freezes or crashes.
Solution
Reposting as an answer:
The %store
magic doesn't have an option to save the whole session, but the dill package has a function dump_session()
which should do that.
Answered By - Thomas K
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.