[IPython-dev] saving state of ipython session to a pickled file
Fri Aug 23 14:47:41 CDT 2013
Yep. My fix was to treat them like singletons, and then pop them from
the copy of __main__.__dict__ that I serialize. So as long as that
assumption is not broken, that should take care of it.
I didn't see anything else in some limited testing... and could run a
few commands, and save the session... and start up again and have
full history and any interactively built functions and stuff within the
limits of what dill does in normal python.
Guys, let me know if you see anything else...
> The technical details: 'exit' and 'quit' are singletons in that we only
> create the one instance of ExitAutocall (the two names refer to the same
> object). The class itself doesn't do anything to prevent there being
> further instances of it, but there's no obvious reason why you would make
> any more. It's also possible to reassign 'exit' or 'quit', but it's
> non-trivial, because of the way we rewrite the syntax.
> On 23 August 2013 12:19, Michael McKerns <email@example.com> wrote:
>> I just pushed an update that *should* fix this bug:
>> detailed by this question:
>> The updates to dill have been posted to github at
>> and the on the issue tracker
>> Until I post a new tarball, dill+ipython users should use the version
>> of the github link.
>> There might be other "magic" things that ipython does that I'm not
>> but this change should make sure the default ones that ipython uses are
>> Mike McKerns
>> California Institute of Technology
>> IPython-dev mailing list
> IPython-dev mailing list
California Institute of Technology
TEL: (626)395-5773 or (626)590-8470
More information about the IPython-dev