Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
%store magic for lightweight persistence.
Stores variables, aliases and macros in IPython’s database.
To automatically restore stored variables at startup, add this to your ipython_config.py file:
c.StoreMagic.autorestore = True