less than 1 minute read

To pass variables between notebooks, first store the variable using:

%store var

and then restore it using:

%store -r data

Via Martina Pugliese.

To automatically restore stored variables at startup, add this to your ipython_config.py file:

c.StoreMagics.autorestore = True

Leave a comment