Can't get ipython console in spyder

别等时光非礼了梦想. 提交于 2019-12-30 06:19:09

问题


I'm having trouble getting an ipython console in Spyder. It only offers a python interpreter under the "interpreters" menu.

I've seen this issue for a couple of others in Stackoverflow, but didn't have much joy with the proffered solutions.

I'm running linux Mint 16 and have installed both ipython (v 1.1.0) and Spyder (v 2.2.1) the easy way via the Mint Software Manager. I made sure that I also installed ipython-qtconsole and verified that I could run it from a terminal (i.e. ipython qtconsole).

I can activate an ipython console using the following commands in a Spyder python console:

import IPython
IPython.start_ipython()

though the font coloring is strange and doesn't work well on a white background (e.g. error messages in yellow and light green). It would be nice anyway to be able to start ipython the normal way from the Spyder menu.


回答1:


You may want to install python-zmq for Python 2 and python3-zmq for Python 3.

I use Ubuntu 14.04, so:

sudo apt-get install python-zmq python3-zmq




回答2:


I'm also using Linux Mint (18.1, at this time) and I have faced the same issue.

What solved this for me was installing Ipython3 Qt console (that, of course, should be Ipython Qt console if you're using Python 2.x).

In case you have it installed, check if you have the latest version (In Linux Mint you can do this through Synaptic, aptitude or apt-get.)



来源:https://stackoverflow.com/questions/23453400/cant-get-ipython-console-in-spyder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!