Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't get ipython console in spyder

Tags:

ipython

spyder

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.

like image 699
dreme Avatar asked May 04 '14 06:05

dreme


People also ask

How do I get my IPython console back on Spyder?

Spyder can launch new IPython instances itself, through “Open an IPython console” under the Consoles menu, the IPython Console pane menu or its context menu ( Ctrl - T by default), to take advantage of the full suite of Spyder's features.

How do I install IPython console on Spyder?

Go to Preferences -> IPython console -> Startup and select the tickbox next to Open an IPython console at startup. Then click the OK button. The next time Spyder starts, it will show the IPython console automatically.

How do I open a new IPython console?

The IPython Console allows you to execute commands and interact with data inside IPython interpreters. To launch a new IPython instance, go to New console (default settings) under the Consoles menu, or use the keyboard shortcut Ctrl - T ( Cmd - T on macOS) when the console is focused.

How do I launch Spyder from console?

Running Spyder From the command line: Type spyder in your terminal (or Anaconda prompt on Windows). From Anaconda Navigator: Scroll to Spyder under Home, and click Launch.


1 Answers

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

like image 95
Manh Tai Avatar answered Oct 19 '22 03:10

Manh Tai