The 'store' magic command is broken via upstream (https://github.com/ipython/ipython/issues/2099). Upstream fixed via commit (https://github.com/ipython/ipython/commit/92309bb477e9ef2c1f912691285c985c8c35fdb5) Provided in the comments are two attachments.. the actual patch and a patch for package-atom dev-python/ipython-0.13
Created attachment 321322 [details, diff] ipython-0.13-storemagic.patch
Created attachment 321324 [details, diff] ipython-0.13.ebuild-storemagic.patch
Full Traceback: In [2]: store --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-fb577a33a172> in <module>() ----> 1 get_ipython().magic(u'store ') /usr/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s) 2159 magic_name, _, magic_arg_s = arg_s.partition(' ') 2160 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC) -> 2161 return self.run_line_magic(magic_name, magic_arg_s) 2162 2163 #------------------------------------------------------------------------- /usr/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line) 2085 args.append(sys._getframe(stack_depth).f_locals) 2086 with self.builtin_trap: -> 2087 result = fn(*args) 2088 return result 2089 /usr/lib/python2.7/site-packages/IPython/extensions/storemagic.pyc in store(self, parameter_s) /usr/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k) 189 # but it's overkill for just that one bit of state. 190 def magic_deco(arg): --> 191 call = lambda f, *a, **k: f(*a, **k) 192 193 if callable(arg): /usr/lib/python2.7/site-packages/IPython/extensions/storemagic.pyc in store(self, parameter_s) 141 # run without arguments -> list variables & values 142 elif not args: --> 143 vars = self.db.keys('autorestore/*') 144 vars.sort() 145 if vars: AttributeError: 'StoreMagics' object has no attribute 'db'
Unfortunately, upon further review, the patch fixes the error (no traceback) but store is still broken. I'll look at other upstream commits to find a complete solution.
I can reproduce this with 0.13 but not with 0.13.1 However I'm not sure how to restore it. If restoration is done with load, then loading doesn't work for me on 0.13.1.
fixed in 0.13.1-r1 In [1]: a=1 In [2]: store Stored variables and their in-db values: In [3]: store a Stored 'a' (int) In [4]: quit yac@elliot ~ $ ipython Python 3.2.4 (default, May 7 2013, 17:09:13) Type "copyright", "credits" or "license" for more information. IPython 0.13.1 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: %store -r a In [2]: a Out[2]: 1