Start Spyder with IPython interpreter directly?

3,911 views
Skip to first unread message

Tim Michelsen

unread,
Sep 24, 2012, 3:03:43 PM9/24/12
to spyd...@googlegroups.com
Hello,
how can I have a IPython interpreter open at each Spyder start-up?

Thanks,
Timmie

Carlos Córdoba

unread,
Sep 24, 2012, 3:25:07 PM9/24/12
to spyd...@googlegroups.com
What versions of IPython and Spyder are you using Tim?

El 24/09/12 14:03, Tim Michelsen escribió:

Tim Michelsen

unread,
Oct 3, 2012, 5:00:08 AM10/3/12
to spyd...@googlegroups.com
> What versions of IPython and Spyder are you using Tim?
Iypthon: 0.13
Spyder: 2.1.11

adeel

unread,
Oct 4, 2012, 1:15:19 PM10/4/12
to spyd...@googlegroups.com
Timmie,

Go-to     Tools>Preferences>Console>Advanced Settings(Tab)

then check "Start ipython at startup"

-Adeel

David Nicholls

unread,
Oct 4, 2012, 7:52:28 PM10/4/12
to spyd...@googlegroups.com
No. Doesn't work with later versions of iPython, the option (which on a Mac is Python > Preferences > Console > Advanced tab) is greyed out.

I' still not sure why this has to be the case. A minor annoyance, but one that happens every time I open Spyder.

DN

Tim Michelsen

unread,
Oct 8, 2012, 3:40:21 PM10/8/12
to spyd...@googlegroups.com
Am 04.10.2012 19:15, schrieb adeel:
> Timmie,
>
> Go-to Tools>Preferences>Console>Advanced Settings(Tab)
>
> then check "Start ipython at startup"
Thanks. Now it works.

Advanced = hidden in this case....


Carlos Córdoba

unread,
Nov 8, 2012, 1:10:50 PM11/8/12
to spyd...@googlegroups.com
It's OK it's greyed out because that option is only available when IPython 0.10 is installed. For IPython 0.11+, please check the option "Start an IPython kernel at startup". That should automatically open an IPython console.

As I said before, we are aware that the wording of this option is quite confuse and so we already fixed it in 2.2.

Cheers,
Carlos

El 08/11/12 12:28, Youssef Barhomi escribió:
Hi, 

The check box "Start iPython at startup" is still greyed out for me!

OS: Ubuntu 12.04
Spyder 2.1.9

Python 2.7.3, Qt 4.8.1, PyQt4 (API v1) 4.9.1 on Linux

iPython 0.13


Thanks a lot!

Youssef

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/_BF98-tXV6QJ.
To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.

David Nicholls

unread,
Nov 8, 2012, 5:35:23 PM11/8/12
to spyd...@googlegroups.com
The problem with the new setup is that (as I recall it from the last time I tried) when you start with an IPython kernel (as distinct from an IPython console), Matplotlib graphics that would otherwise open in a separate window are now inline, which is really annoying. So it looks like I'm stuck with manually opening an IPython console.

DN

David Verelst

unread,
Nov 9, 2012, 12:02:12 PM11/9/12
to spyder
You can specify where ipython should output the plots: inline or by your matplotlib backend (qt, wx, gtk, ...). I am using ipython 0.13.1 with spyder 2.2.0dev and here I have the option in spyder to specify how the ipython console should handle the graphics: Tools > Preferences > IPython console > graphics backend. Seems that inline is the default. Switch to qt, automatic or whatever installed/wanted backend you want to use. I don't know if this feature is only available in the development version or not.

As a side note, you can also specify inline (or not) plotting of an ipython console when launching from the command line as follows:
ipython qtconsole pylab=inline or ipython qtconsole pylab=qt (for plotting in a separate window)

Regards,
David

David Nicholls

unread,
Nov 9, 2012, 4:04:28 PM11/9/12
to spyd...@googlegroups.com
Thanks, David, useful information.

DN

Redoubts

unread,
Mar 6, 2013, 9:24:14 PM3/6/13
to spyd...@googlegroups.com
I believe only spyder version 2.1.13 and above have proper support for IPython 0.13. You should update your editor to a more recent version. 2.2.0Beta3 has been pretty stable for me lately.

On Wednesday, March 6, 2013 12:23:50 PM UTC-8, jkja...@gmail.com wrote:
I have similar setup as Youssef though I am not entirely sure which Qt I have (but PyQt is same).
Under Preferences -> Console -> Advanced Settings (Tab) not only is "open ipython interpreter" greyed out, I do not have the "Start an IPython kernel at startup" either!
Do you ahev any suggestions?

Thanks.

jkja...@gmail.com

unread,
Mar 7, 2013, 10:39:48 AM3/7/13
to spyd...@googlegroups.com
Thank you for your reply. I did sudo pip install -U spyder. i could read that 2.2.0Beta3 was being downloaded and installed. Now if I try to launch spyder from an xterm I get a bunch of errors. the last of which is
"raise ImportError("%s requires pyzmq >= %s"%(module, minimum_version))
ImportError: IPython.zmq requires pyzmq >= 2.1.4"

Also I get some gui errors which seem to indicate python has problems with some numpy files of type filename.so.

:-(

jkja...@gmail.com

unread,
Mar 7, 2013, 10:57:47 AM3/7/13
to spyd...@googlegroups.com

I tried pip install -U on zmq and pyzmq and get "No distributions at all found for zmq"

Uwe Fechner

unread,
Mar 7, 2013, 11:09:35 AM3/7/13
to spyd...@googlegroups.com, jkja...@gmail.com
You could try the following ppa:
https://launchpad.net/~jtaylor/+archive/ipython

You also need to install:
libzmq-dev

Before you can do:
sudo easy_install -U pyzmq

This worked for me, even though there is an error message at the end of the install
process.

Regards:

Uwe
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.

To post to this group, send email to spyd...@googlegroups.com.

jkja...@gmail.com

unread,
Mar 7, 2013, 11:22:22 AM3/7/13
to spyd...@googlegroups.com
Thank you utechner for your reply. But I am posting a reply to my earlier message as I seem to have solved the problem.

I found a Ubuntu apps page which had a download for ipython with qtconsole. I used Software center (Ubuntu 12.04) to install it. Somehow that got spyder to start! Now in spyder I get BOTH Console and iPython console. :-) Uncheck what you don't want and check what you want in their respective Settings and "Voila!".

jkja...@gmail.com

unread,
Mar 7, 2013, 11:24:11 AM3/7/13
to spyd...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages