Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-21 Thread Gael Varoquaux
On Mon, Jul 21, 2008 at 05:30:00AM -0500, John Hunter wrote: > On Mon, Jul 21, 2008 at 4:07 AM, Gael Varoquaux > <[EMAIL PROTECTED]> wrote: > > Could somebody review this patch and possibly check it in? It is not > > perfect but is, IMHO, a good start that works on everything I have thrown > OK,

Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-21 Thread John Hunter
On Mon, Jul 21, 2008 at 4:07 AM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > Could somebody review this patch and possibly check it in? It is not > perfect but is, IMHO, a good start that works on everything I have thrown OK, looks good; I've committed it to svn r5798. I have commented out the t

Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-21 Thread Gael Varoquaux
On Sat, Jul 19, 2008 at 08:05:52AM +0200, Gael Varoquaux wrote: > On Sat, Jul 19, 2008 at 07:31:19AM +0200, Gael Varoquaux wrote: > > - show starts a mainloop and is blocking even if there are not windows > > open. This basically leads to a deadlock where the user cannot > > interrupt the

Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-20 Thread Gael Varoquaux
On Sat, Jul 19, 2008 at 03:42:27PM -0500, John Hunter wrote: > On Sat, Jul 19, 2008 at 1:05 AM, Gael Varoquaux > <[EMAIL PROTECTED]> wrote: > > It turns out it was only in the GTK backend, and quite trivial to > > correct. Attached is a new patch, including this correction. > Hey Gael, this is st

Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-19 Thread Eric Firing
Ryan May wrote: > John Hunter wrote: >> Fernando and Gael proposed supporting a backend fallback option so the >> user could express the intention: use my default backend unless I >> happen to be in an incompatible user interface environment and then >> just choose the most sensible thing. Users w

Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-19 Thread Ryan May
John Hunter wrote: > Fernando and Gael proposed supporting a backend fallback option so the > user could express the intention: use my default backend unless I > happen to be in an incompatible user interface environment and then > just choose the most sensible thing. Users who do not want this ma

Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-19 Thread John Hunter
On Sat, Jul 19, 2008 at 1:05 AM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > It turns out it was only in the GTK backend, and quite trivial to > correct. Attached is a new patch, including this correction. Hey Gael, this is starting to look reasonable. I know implementing these checks, such as d

Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-18 Thread Gael Varoquaux
On Sat, Jul 19, 2008 at 07:31:19AM +0200, Gael Varoquaux wrote: > - show starts a mainloop and is blocking even if there are not windows > open. This basically leads to a deadlock where the user cannot > interrupt the mainloop. This can probably be easily fixed, and I'll > look into i

Re: [matplotlib-devel] Progress on interactive backend detection

2008-07-18 Thread Gael Varoquaux
I forgot to mention: fltk and cocoa did not get any love at all in this patch. The reason being that I do not know of any program running the first one, and for me to test and develop things for the second one, somebody will have to offer me an apple computer :). Cheers, Gaƫl ---

[matplotlib-devel] Progress on interactive backend detection

2008-07-18 Thread Gael Varoquaux
I have implemented a prototype of interactive backend detection. As I proposed earlier, I added an extra rc parameter 'backend_fallback' that allows pyplot to inspect sys.modules on load and try to redirect interactive backends to the appropriate ones. I am attaching a patch, not for inclusion, as