TypeError: base_launch_kernel() got an unexpected keyword argument 'ipython'

Jul 21, 2012 at 8:59 PM

Hi,

I am using enthough python 2.7 on Windows 7 32 bit. I am able to launch ipython independently, e.g. ipython qtconsole --pylab=inline. However, IPython does not work for me through PyTools. I get this error message immediately on load:

 

The Python REPL process has exited
Traceback (most recent call last):
  File "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\1.5\visualstudio_py_repl.py", line 1092, in 
    _run_repl()
  File "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\1.5\visualstudio_py_repl.py", line 1076, in _run_repl
    BACKEND = backend_type(launch_file=options.launch_file)
  File "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\1.5\visualstudio_ipython_repl.py", line 158, in __init__
    self.km.start_kernel(**{'ipython': True, 'extra_arguments': self.get_extra_arguments()})
  File "C:\ent-Python27\lib\site-packages\IPython\zmq\kernelmanager.py", line 806, in start_kernel
    self.kernel = launch_kernel(fname=self.connection_file, **kw)
  File "C:\ent-Python27\lib\site-packages\IPython\zmq\ipkernel.py", line 869, in launch_kernel
    *args, **kwargs)
TypeError: base_launch_kernel() got an unexpected keyword argument 'ipython'

Suggestions for fixing this are appreciated. I really don't want to using the qtconsole just to get inline plots!

Coordinator
Jul 24, 2012 at 5:01 PM

Looks like this is a breaking change in IPython .13.  To work around this you can remove "'ipython': True," from "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\1.5\visualstudio_ipython_repl.py" on line 158.  I've pinged the IPython team and will turn this into a bug so we can support .11-.13 at the same time.  Thanks for the report!

Coordinator
Jul 24, 2012 at 5:01 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.