Re: [spyder] how do I make an ipython kernel window open figures in a new window

2,770 views
Skip to first unread message

Matt Anderson

unread,
Jul 11, 2012, 12:58:59 PM7/11/12
to spyd...@googlegroups.com
Sadly, it is not yet possible to switch on the fly between inline and interactive mode.  Either the kernel behind the scenes is one or the other.

However, you can change which mode the kernel you create is in in Tools>Preferences>Ipython Console>Graphics>Graphics Backend.



On Wed, Jul 11, 2012 at 4:42 AM, laughingrice <laughi...@gmail.com> wrote:
I'm running spyder under windows (64bit), and use the ipython interpreter (start a new ipython kernel option) by default.

When displaying figures (imshow, plot, etc.) the default behavior is to show then inline, it's useful in most cases as it allows to see history, but doesn't allow to scale and zoom images to see details which is even more convenient in my case.

How do I change the default, or per plot, to display them in a new window?

Thanks

--
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/-/aF9akfRtH74J.
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.

laughingrice

unread,
Jul 12, 2012, 6:43:19 AM7/12/12
to spyd...@googlegroups.com
I don't seem to have  Tools>Preferences>Ipython Console, only  Tools>Preferences>Console
Under the IPython interpreter command line options it says that IPythong >= 0.10 is not installed on this computer, may be the cause, although starting ipython, it says that the version installed is 0.12.1
Changing options under console don't seem to make any difference for the ipython kernel window
Running from an ipython console or a regular console (I can't open an ipython console automatically at startup) gives me the behavior I want, but I can't open the ipython console on startup automatically, which makes things a bit more cumbersome and it doesn't setup the numpy environment automatically as well

Thanks

Matt Anderson

unread,
Jul 12, 2012, 8:46:54 AM7/12/12
to spyd...@googlegroups.com
To get the most out of Ipython and Spyder you need the most up to date versions of both.  They are both moving very quickly, so possibly you should consider following the development versions.  However, be warned that bugs will often crop up in these versions so you will need to know how to revert to previous versions.  I believe the newest Spyder only supports Ipython .12 or greater, but the one you have likely was before that change(and the added menu options I spoke of).


Thanks

--
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/-/SS5FhR9nq1YJ.

laughingrice

unread,
Jul 12, 2012, 9:48:13 AM7/12/12
to spyd...@googlegroups.com
I'm not sure if it's the best option, but a solution I found is to edit .spyder2/.spyder.ini and remove the inline from the line
ipython_kernel_options = 'python --pylab=inline'
This makes the ipython kernel behave as I want
I couldn't get the internal ipython to behave as I want. It locks up on interactive drawing (i.e if ion() is called), and doesn't import what I want and I couldn't find the setup files for that yet, only for the kernel version.

As for the version, I'm using the 64bit version of the enthought distribution 7.3.1. Version 8 seems to be out, at least in beta, but not under the academic license.

I've looked here
doesn't seem to be a newer version of spyder for 64 bits, but there is one for ipython now (0.13), will see if it makes a difference.

Thanks

On Thursday, July 12, 2012 3:46:54 PM UTC+3, matt wrote:
To get the most out of Ipython and Spyder you need the most up to date versions of both.  They are both moving very quickly, so possibly you should consider following the development versions.  However, be warned that bugs will often crop up in these versions so you will need to know how to revert to previous versions.  I believe the newest Spyder only supports Ipython .12 or greater, but the one you have likely was before that change(and the added menu options I spoke of).

On Thu, Jul 12, 2012 at 5:43 AM, laughingrice wrote:
I don't seem to have  Tools>Preferences>Ipython Console, only  Tools>Preferences>Console
Under the IPython interpreter command line options it says that IPythong >= 0.10 is not installed on this computer, may be the cause, although starting ipython, it says that the version installed is 0.12.1
Changing options under console don't seem to make any difference for the ipython kernel window
Running from an ipython console or a regular console (I can't open an ipython console automatically at startup) gives me the behavior I want, but I can't open the ipython console on startup automatically, which makes things a bit more cumbersome and it doesn't setup the numpy environment automatically as well

Thanks

--
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/-/SS5FhR9nq1YJ.

To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages