Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-09-08 Thread Evan Patterson
When you press Ctrl-., the client prompts you to make sure that you really want to restart the kernel. Your work is not at risk from a careless key press. Evan On Wed, Sep 8, 2010 at 9:58 AM, Nathaniel Smith wrote: > On Wed, Sep 8, 2010 at 12:12 AM, Fernando Perez wrote: >> ps - tip: Ctrl-. res

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-09-08 Thread Nathaniel Smith
On Wed, Sep 8, 2010 at 12:12 AM, Fernando Perez wrote: > ps - tip: Ctrl-. restarts the kernel Tangentially... please make this something that's a little harder to hit by accident, like Ctrl-Alt-. or a menu item or something? My ipython's regularly hold state that would take a few CPU-days to reco

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-09-08 Thread Fernando Perez
Hi Jeff, On Mon, Sep 6, 2010 at 6:27 AM, Jeff Whitaker wrote: > Fernando: Got it, thanks.  Sounds reasonable to me.  Just playing with it a > bit, one thing I found myself looking for was a way to save the entire > session (inline figures included) to html. > Of course! When is the patch coming?

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-09-06 Thread Jeff Whitaker
On 9/5/10 6:32 PM, Fernando Perez wrote: > Hi Jeff, > > On Sun, Sep 5, 2010 at 5:25 PM, Jeff Whitaker wrote: >> Fernando: That works, but it seems like I have to run show() to make the >> plot appear inline. draw() doesn't do it. Is this the expected behavior? >> > Yes, currently it is, becau

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-09-05 Thread Fernando Perez
Hi Jeff, On Sun, Sep 5, 2010 at 5:25 PM, Jeff Whitaker wrote: > Fernando:  That works, but it seems like I have to run show() to make the > plot appear inline.  draw() doesn't do it.  Is this the expected behavior? > Yes, currently it is, because the show() you're running is actually *our* show(

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-09-05 Thread Jeff Whitaker
On 9/5/10 3:15 PM, Fernando Perez wrote: > Hi Jeff, > > On Sun, Sep 5, 2010 at 10:18 AM, Jeff Whitaker wrote: >> Fernando: I've got ipython-newkernal ipythonqt working on my mac - how do I >> tell it to switch between external plot windows and inline plots? External >> windows seems to be the

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-09-05 Thread Fernando Perez
Hi Jeff, On Sun, Sep 5, 2010 at 10:18 AM, Jeff Whitaker wrote: > > Fernando:  I've got ipython-newkernal ipythonqt working on my mac - how do I > tell it to switch between external plot windows and inline plots?  External > windows seems to be the default... if you start it with --rich, it will

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-09-05 Thread Jeff Whitaker
On 8/30/10 1:21 AM, Fernando Perez wrote: > Hi Eric, > > On Sat, Aug 28, 2010 at 4:27 PM, Eric Firing wrote: >> Impressive--but I don't think I understand why one would want plots rendered >> inline rather than in separate windows. Fernando: I've got ipython-newkernal ipythonqt working on my m

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-31 Thread Fernando Perez
On Tue, Aug 31, 2010 at 1:55 PM, Ondrej Certik wrote: > Ok, I'll give it a shot then. As I mentioned elsewhere, getting it going is a bit rough right now. So unless you really want to play with real bleeding edge code, give us a couple of weeks. It will be much nicer then. Cheers, f -

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-31 Thread Ondrej Certik
On Tue, Aug 31, 2010 at 1:25 PM, Fernando Perez wrote: > On Tue, Aug 31, 2010 at 1:21 PM, Ondrej Certik wrote: >> >> That'd be great. I think I either want to use regular terminal, or a >> worksheet in the browser. > > You may change your mind when you start playing with the new Qt > terminal :)

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-31 Thread Fernando Perez
On Tue, Aug 31, 2010 at 1:21 PM, Ondrej Certik wrote: > > That'd be great. I think I either want to use regular terminal, or a > worksheet in the browser. You may change your mind when you start playing with the new Qt terminal :) It feels very much like a terminal, except with a ton of little u

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-31 Thread Ondrej Certik
On Mon, Aug 30, 2010 at 9:59 PM, Fernando Perez wrote: > On Mon, Aug 30, 2010 at 7:24 AM, Benjamin Root wrote: >> Dude, that just blew my mind! >> > > Glad you like it :) > > And needless to say, once the dust settles and someone is willing, the > obvious thing to do is to put a zeromq-http bridg

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-31 Thread Fernando Perez
On Mon, Aug 30, 2010 at 7:24 AM, Benjamin Root wrote: > Dude, that just blew my mind! > > Awesome idea! By the way, I don't know if it was clear, but this wasn't just an idea, it's already implemented: http://fperez.org/tmp/ip-multiclient.png The two windows are talking to the same kernel, the

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-30 Thread Fernando Perez
On Mon, Aug 30, 2010 at 7:24 AM, Benjamin Root wrote: > Dude, that just blew my mind! > Glad you like it :) And needless to say, once the dust settles and someone is willing, the obvious thing to do is to put a zeromq-http bridge and make a web browser-based client, so you can use ipython/matplo

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-30 Thread Benjamin Root
On Mon, Aug 30, 2010 at 2:21 AM, Fernando Perez wrote: > Hi Eric, > > On Sat, Aug 28, 2010 at 4:27 PM, Eric Firing wrote: > > > > Impressive--but I don't think I understand why one would want plots > rendered > > inline rather than in separate windows. > > It's not 'rather than', it's 'in additio

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-30 Thread Fernando Perez
Hi Eric, On Sat, Aug 28, 2010 at 4:27 PM, Eric Firing wrote: > > Impressive--but I don't think I understand why one would want plots rendered > inline rather than in separate windows. It's not 'rather than', it's 'in addition to' :) Imagine you and I are working on a problem together, you have

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-28 Thread Eric Firing
On 08/28/2010 09:38 AM, Fernando Perez wrote: > On Fri, Aug 27, 2010 at 12:15 AM, Eric Firing wrote: >> I committed it. >> > > Many thanks Eric, for being so responsive! Fernando, I'm glad to help; ipython is a crucial part of the tool set. > > Some eye candy to give you an idea of what we're g

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-28 Thread Fernando Perez
On Fri, Aug 27, 2010 at 12:15 AM, Eric Firing wrote: > I committed it. > Many thanks Eric, for being so responsive! Some eye candy to give you an idea of what we're getting from this work: http://fperez.org/tmp/multiplot.png http://fperez.org/tmp/multiplot2.png The second is the MPL contours e

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-28 Thread Brian Granger
Eric, On Fri, Aug 27, 2010 at 12:15 AM, Eric Firing wrote: > On 08/26/2010 05:13 PM, Brian Granger wrote: >> Hi, >> >> We are in the process of getting our new Qt IPython GUI working with >> matplotlib.  One problem we have found is that the matplotlib qt4 >> backend always creates a QApplication

Re: [matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-27 Thread Eric Firing
On 08/26/2010 05:13 PM, Brian Granger wrote: > Hi, > > We are in the process of getting our new Qt IPython GUI working with > matplotlib. One problem we have found is that the matplotlib qt4 > backend always creates a QApplication. This is problematic in > situations where another part of an appl

[matplotlib-devel] Patch for Qt4 backend for IPython GUI

2010-08-26 Thread Brian Granger
Hi, We are in the process of getting our new Qt IPython GUI working with matplotlib. One problem we have found is that the matplotlib qt4 backend always creates a QApplication. This is problematic in situations where another part of an application has already created a QApplication. The fix is