diff --git a/IPython/Magic.py b/IPython/Magic.py index a986545..a5c5f95 100644 --- a/IPython/Magic.py +++ b/IPython/Magic.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Magic functions for InteractiveShell. -$Id: Magic.py 968 2005-12-29 17:15:38Z fperez $""" +$Id: Magic.py 969 2005-12-29 17:18:31Z fperez $""" #***************************************************************************** # Copyright (C) 2001 Janko Hauser and @@ -2527,17 +2527,17 @@ Defaulting color scheme to 'NoColor'""" self.shell.jobs.new(parameter_s,self.shell.user_ns) def magic_store(self, parameter_s=''): - """Lightweight persistence for ipython variables + """Lightweight persistence for python variables. Example: - ville@badger[~]|1> A = ['hello',10,'world'] - ville@badger[~]|2> %store A + ville@badger[~]|1> A = ['hello',10,'world']\\ + ville@badger[~]|2> %store A\\ ville@badger[~]|3> Exit (IPython session is closed and started again...) - ville@badger:~$ ipython -p pysh + ville@badger:~$ ipython -p pysh\\ ville@badger[~]|1> print A ['hello', 10, 'world']