[IPython-User] Weird behaviour with ipython qtconsole and shell comands

Chris Withers chris@simplistix.co...
Mon Apr 8 20:07:32 CDT 2013


On 07/04/2013 11:43, Jonathan March wrote:
>
> QtConsole has had issues with console output in the past, but with
> 0.13.1, your shell head command works fine for me on Mac OS X.

Indeed, but now starting ipython without qtconsole I get:

[TerminalIPythonApp] Error in loading extension: kernmagic
Check your config files in /Users/chris/.ipython/profile_default
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/core/extensions.py 
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):

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/core/extensions.py 
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):

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/kernmagic/__init__.py 
in load_ipython_extension(ip)
      28
      29 def load_ipython_extension(ip):
---> 30     activate(ip)
      31     activate_aliases(ip)

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/kernmagic/__init__.py 
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'

What's going on here?

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk


More information about the IPython-User mailing list