IPython not available in Spyder

2019-04-08 19:58发布

问题:

I don't think I'm suffering from the problem in this closely related question.

I'm running Linux Mint 16 (based on Ubuntu 13.10) and have Spyder 2.2.5 and IPython 0.13.2.

Under the Interpreters menu I only see Open a Python interpreter... and not an option to open an IPython interpreter.

Is there anything I have to do to "show" Spyder where IPython "is"?

Here is the output of my "Optional Dependencies":

IPython >=0.13  :  0.13.2 (OK)
matplotlib >=1.0:  1.2.1 (OK)
pep8 >=0.6      :  None (NOK)
pyflakes >=0.5.0:  0.7.3 (OK)
pylint >=0.25   :  None (NOK)
rope >=0.9.2    :  0.9.2 (OK)
sphinx >=0.6.6  :  1.1.3 (OK)

回答1:

In principle you should be able to open an IPython console with View -> Windows -> IPython console... do you have this? If this is not an option, try this: from an interpreter window,

import IPython
IPython.start_ipython()


回答2:

For me, the IPython console was not available anymore in Spyder (2.3.8) after updating IPython to version 4.1.1.

The solution was to install/upgrade qtconsole:

pip install -U qtconsole

See also https://github.com/spyder-ide/spyder/issues/2608#issuecomment-130586847



回答3:

In my case (Spyder3.0.0dev), I checked:

Help -> Optional dependencies

and saw that my IPython was outdated. So shut Spyder and I upgraded ipython,

sudo pip3 install ipython --upgrade

or if you use Python2:

sudo pip install ipython --upgrade

and restarted Spyder. Voila! IPython console is there



回答4:

Had the same issue and in this case I missed the ipython-qtconsole package. On my Mint OS :

sudo apt-get install ipython-qtconsole

did the trick.

I found the info there https://pythonhosted.org/spyder/installation.html after having tried the proposed solutions of this post



回答5:

For python 3, following resolved the issue for me on Mint OS

sudo apt-get install ipython3-qtconsole


回答6:

sudo pip3 install ipython --upgrade
sudo pip3 install qtconsole --upgrade

With this it's done and working!



回答7:

Coming over from Windows 10 to Linux Mint still more comfortable with the Software Manager, installed Spyder3, Ipython, Python-tk, and Ipython3-qtconsole, don't know if Ipython or Python-tk where necessary. Spyder3 now has a "Open IPython console" drop down under Consoles.