On Fri, Jul 18, 2008 at 09:15:16AM -0500, John Hunter wrote: > ipython Shell.py already hacks wx, gtk, and tk to make sure mpl's > mainloop is not going to cause any problems (eg > IPython.Shell.hijack_wx). Is there something about the new ipython wx > frontend design that requires a different solution for mpl?
Hum, maybe I am not understanding properly what you mean here. It acts on matplotlib only when it is passed the -pylab argument, AFAIK. Thus if you load "ipython -wthread" you will still be getting the default backend for matplotlib if you import it later on, and that default backend is GTK on Ubuntu, and the GTK mainloop doesn't play well at all with the wx one. > I'm happy to hold the release until we get this sorted out, but before > I review the patch maybe you can let me know what if anything is > different about the new ipython design that requires changes in mpl > because I haven't followed the ipython redesign closely enough. The frontend I am talking about is a PyShell replacement. It is a Wx widget and is not even multithreaded: it lives in the mainloop. We could indeed load pylab at the start and choose the right backend, but this requires preloading pylab, and I am not to enthousiastic about such a potential loss of time at load for users who have not asked for matlab. We could also provide a "-pylab" switch, but right now we don't even have a canonical entry point: this is a widget, and not a program. I'll talk to Fernando to have his view on this. The patch I have sent would also allow for seemless use of matplotlib in SPE, winpdb, or Mayavi, as all these apps use the wx mainloop. I hope this clarifies the situtation. Cheers, Gaƫl ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel