[IPython-dev] Detecting GUI mainloop running in IPython

Brian Granger ellisonbg@gmail....
Sun Jul 25 16:35:18 CDT 2010


On Sun, Jul 25, 2010 at 2:32 PM, Gael Varoquaux <
gael.varoquaux@normalesup.org> wrote:

> On Sun, Jul 25, 2010 at 11:16:48AM -1000, Eric Firing wrote:
> > I haven't looked at mlab.show(), but if it is derived from earlier
> > matplotlib show(), then you might want to take a look at how show() is
> > now implemented in mpl.  It works well with ipython 0.10 and 0.11.
>
> Thanks Eric. mlab's show was not derived from any matplotlib code. None
> the less, I had a quite look at SVN matplotlib to figure out how it was
> done.
>
> It seems to me that it is done in 'backend_bases.py', line 81, by
> checking if IPython added a special attribute to the ShowBase instance.
> Thus, it seems to rely on a collaboration between IPython and matplotlib.
>
>
I am not sure, but I wouldn't be surprised.


> Can anyone confirm or infirm?
>
>
Not I.

Brian


> Cheers,
>
> Gaël
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu
ellisonbg@gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20100725/00d7664f/attachment.html 


More information about the IPython-dev mailing list