Install IPython for Sublime Text 2 Python Embedded Interpreter

I am trying to install the IpythonIntegration package in sublime,

I installed bash into the shell:

  • last ipython
  • pyzmq
  • Pyside

However, the elevated console still gives me an error

Reloading plugin /home/areal/.config/sublime-text-2/Packages/User/ipython_repl.py Traceback (most recent call last): File "./sublime_plugin.py", line 62, in reload_plugin File "./ipython_repl.py", line 13, in <module> from IPython.zmq.blockingkernelmanager import BlockingKernelManager ImportError: No module named IPython.zmq.blockingkernelmanager 

EDIT:
Even import IPython will not work.

If python console is running import IPython and import zmq :

 from IPython.zmq.blockingkernelmanager import BlockingKernelManager 

Failure:

 ImportError: No module named zmq.blockingkernelmanager 

I have 0MQ 3.2 (also tried with 2.x) and the latest PyZMQ . I am working with Python 2.7.2 on Ubuntu 11.10 .

So, I have 2 problems:

  • No IPython in Sublime (I assume this is because the sublime works with the built-in interpreter)
  • No zmq module in IPython
+4
source share
1 answer

I do not use Ubuntu, but I encounter a similar problem in Mac OS X.

The reason success in standalone python and failure in sublime text 2 is: sublime text 2 uses python 2.6 by default, while standalone python is 2.7.

To solve this problem, in my OS X I create a soft link from 2.7 to 2.6, something like below:

 cd /Library/Frameworks/Python.framework/Versions/ sudo mv 2.6 2.6-backup ln -s 2.7 2.6 

I think you can do the same in Ubuntu.

+2
source

All Articles