1. Robert Kern
  2. kernmagic
  3. Issues
Issue #2 new

kernmagic with ipython 0.13dev

Satrajit Ghosh
created an issue

kernmagic should be updated to check for ipython version to conform to the different api's.

{{{

!python

(nipype0.5)satra@computor:/mindhive/gablab/sad/sad_struct/scripts$ ipython Python 2.7.2 |CUSTOM| (default, Jul 3 2011, 15:17:51) Type "copyright", "credits" or "license" for more information.

IPython 0.13.dev -- 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. [TerminalIPythonApp] Error in loading extension: kernmagic Check your config files in /srv/users/satra/.config/ipython/profile_default


AttributeError Traceback (most recent call last) /srv/software/python/EPD/virtualenvs/7.2/nipype0.5/lib/python2.7/site-packages/IPython/core/extensions.pyc in load_extension(self, module_str) 90 import(module_str) 91 mod = sys.modules[module_str] ---> 92 return self._call_load_ipython_extension(mod) 93 94 def unload_extension(self, module_str):

/srv/software/python/EPD/virtualenvs/7.2/nipype0.5/lib/python2.7/site-packages/IPython/core/extensions.pyc in _call_load_ipython_extension(self, mod) 122 def _call_load_ipython_extension(self, mod): 123 if hasattr(mod, 'load_ipython_extension'): --> 124 return mod.load_ipython_extension(self.shell) 125 126 def _call_unload_ipython_extension(self, mod):

/software/python/EPD/7.2/lib/python2.7/site-packages/kernmagic/init.pyc in load_ipython_extension(ip) 28 29 def load_ipython_extension(ip): ---> 30 activate(ip) 31 activate_aliases(ip)

/software/python/EPD/7.2/lib/python2.7/site-packages/kernmagic/init.pyc in activate(ip, args) 14 continue 15 magic_name = name[len('magic_'):] ---> 16 ip.shell.define_magic(magic_name, getattr(mymagics, name)) 17 18 def activate_aliases(ip, args):

AttributeError: 'TerminalInteractiveShell' object has no attribute 'shell' }}}```

Comments (0)

  1. Log in to comment