iPython at startup?

969 views
Skip to first unread message

David Nicholls

unread,
Aug 10, 2012, 9:01:15 PM8/10/12
to spyd...@googlegroups.com
I invariably use the iPython interpreter, and I'd like it to start up immediately I open Spyder. The prefs has a check box titled "Open an iPython interpreter at startup" but it is greyed out. How do I fix this? (using the latest Macports Spyder).

DN

David Nicholls

unread,
Aug 11, 2012, 8:49:30 PM8/11/12
to spyd...@googlegroups.com
No answer yet, so I thought I'd add the following.

When I mouse over the greyed-out preferences option, it says "This option is not available for iPython versions which are not fully supported through Spyder's console (i.e. iPython v0.11+)"

Since we're now at least at iPython v0.13, this seems like quite a gap in Spyder's capability.

The reason for both Spyder and iPython is to make the whole process more efficient, and both do this very well.

Will there be proper iPython integration into the Spyder console?

DN

Pierre Raybaut

unread,
Aug 12, 2012, 7:17:38 AM8/12/12
to spyd...@googlegroups.com
What version of Spyder are you using?

Full support of IPython 0.11-0.13 is already implemented in Spyder
v2.1.11 and v2.2.0dev (latest revision of default repository), but not
through Spyder's console plugin:
* v2.1: you have to open a new IPython kernel via the console plugin
menu and then an IPython frontend is opened automatically as a
separate dockwidget (there is an option to open a new kernel at
startup, that's what you are asking for)
* v2.2: a plugin dedicated to IPython 0.11+ has been implemented, the
"IPython console" plugin (there is an option to open an IPython
console at startup too)

Cheers
-Pierre
> --
> You received this message because you are subscribed to the Google Groups "spyder" group.
> 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,
Aug 12, 2012, 11:08:35 AM8/12/12
to spyd...@googlegroups.com
I'm using Spyder 2.1.11 and it does behave as you say.

iPython works, it's just not possible to start automatically with an iPython interpreter in the Console window.

In v2.2, will opening an iPython window in the Console at startup be possible?

DN

Pierre Raybaut

unread,
Aug 13, 2012, 6:20:33 AM8/13/12
to spyd...@googlegroups.com
I've just checked with Spyder v2.1.11, in Preferences > Console >
Advanced settings, you may check "Start an IPython kernel at startup"
for IPython 0.12+ and "Open an IPython interpreter at startup" for
IPython 0.10.

So if you are using IPython v0.11, you'll have to upgrade to v0.12.

-Pierre

2012/8/12 David Nicholls <d...@dcnicholls.com>:

David Nicholls

unread,
Aug 13, 2012, 8:35:41 AM8/13/12
to spyd...@googlegroups.com
Yes, I can "start up an iPython kernel" OK, but I wanted to open an iPython interpreter on start up, and it's the latter preference that's greyed out. (This happens on two different Spyder 2.1.11 installations one using iPython 0.13, the other iPython 0.12.1)

The reason I want the interpreter, not the kernel, is that Matplotlib graphics are displayed inline in the console with an iPython interpreter, and I want the extra interactive controls that a separate Matplotlib window allows.

DN

Pierre Raybaut

unread,
Aug 13, 2012, 12:37:46 PM8/13/12
to spyd...@googlegroups.com
Well then I've already answered in a way: if you want IPython support
in Spyder's console, you must downgrade your IPython installation to
v0.10.

-Pierre

David Nicholls

unread,
Aug 13, 2012, 7:11:50 PM8/13/12
to spyd...@googlegroups.com
Maybe I didn't express myself clearly, iPython works fine in the console, and I use it all the time, but I just can't tell Spyder to run an iPython interpreter at startup, I have to start it manually from the Console controls.

DN

Carlos Córdoba

unread,
Aug 14, 2012, 9:59:32 AM8/14/12
to spyd...@googlegroups.com
David, if you check the option "Start an IPython kernel at startup",
Spyder will also open an IPython interpreter automatically, which is
connected to that kernel. The option "Open an IPython interpreter at
startup" is grayed out because it only works for IPython 0.10.

I think things are a bit confusing if you don't know how IPython works.
The kernel is the process in charge of running python code, and the
interpreter (or client or frontend) is just the interface from which
that code is sent.

We need to start a kernel inside the external console (as opposed to
doing it as a background job) because that's the only way to connect it
with our Variable Explorer and Object Inspector.

Hope this clarifies things for you,
Carlos

El 13/08/12 18:11, David Nicholls escribió:

David Nicholls

unread,
Aug 14, 2012, 10:03:54 AM8/14/12
to spyd...@googlegroups.com
OK, thanks, Carlos.

DN

David Nicholls

unread,
Aug 14, 2012, 10:06:49 AM8/14/12
to spyd...@googlegroups.com
But perhaps I can ask one more question: what characteristic of iPython 0.10 allows it to operate so that the "open iPython interpreter at startup" is allowed, compared to later versions of iPython where the option is not allowed?

DN

On 14/08/2012, at 11:59 PM, Carlos Córdoba <ccord...@gmail.com> wrote:

Carlos Córdoba

unread,
Aug 14, 2012, 10:15:28 AM8/14/12
to spyd...@googlegroups.com
The problem doesn't lie in IPython but it's our fault, not about how we
integrated IPython with Spyder but about how we show that particular
option to the end user. We just phrased it incorrectly. Instead of
saying "Start an IPython kernel at startup" we could have just left
"Open an IPython interpreter at startup". We decided to use the first
one because it seemed closer to how IPython actually works.

El 14/08/12 09:06, David Nicholls escribió:
Reply all
Reply to author
Forward
0 new messages