diff --git a/IPython/extensions/storemagic.py b/IPython/extensions/storemagic.py index 19282f8..7c57b39 100644 --- a/IPython/extensions/storemagic.py +++ b/IPython/extensions/storemagic.py @@ -2,17 +2,12 @@ """ %store magic for lightweight persistence. -Stores variables, aliases and macros in IPython's database. Stored values will -be automatically restored whenever the extension is loaded. +Stores variables, aliases and macros in IPython's database. -To enable this functionality, list it in your default profile -`ipython_config.py` file:: +To automatically restore stored variables at startup, add this to your +:file:`ipython_config.py` file:: - c.InteractiveShellApp.extensions = ['storemagic'] - -Or to use it temporarily, run this in your IPython session:: - - %load_ext storemagic + c.StoreMagic.autorestore = True """ diff --git a/docs/source/whatsnew/development.txt b/docs/source/whatsnew/development.txt index 749f359..d32ba8d 100644 --- a/docs/source/whatsnew/development.txt +++ b/docs/source/whatsnew/development.txt @@ -62,8 +62,9 @@ New features Terminal frontend by default (:ghpull:`838`). * **%store**: The ``%store`` magic from earlier versions has been updated and - placed in an extension, :ref:`extensions_storemagic`. Add 'storemagic' to ``c.InteractiveShellApp.extensions`` - in ipython_config.py to enable it (:ghpull:`1029`). + re-enabled (:ref:`extensions_storemagic`; :ghpull:`1029`). To autorestore + stored variables on startup, specify ``c.StoreMagic.autorestore = True`` in + :file:`ipython_config.py`.