Permalink
Browse files

Update docs on %store magic.

  • Loading branch information...
1 parent 2f1ded1 commit 3b9318e16a8adfbf222ac5a99fce3c29f208e4f3 @takluyver takluyver committed Nov 30, 2011
Showing with 7 additions and 11 deletions.
  1. +4 −9 IPython/extensions/storemagic.py
  2. +3 −2 docs/source/whatsnew/development.txt
@@ -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
"""
@@ -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`.

0 comments on commit 3b9318e

Please sign in to comment.