[IPython-dev] Detecting GUI mainloop running in IPython

Eric Firing efiring at hawaii.edu
Sun Jul 25 17:16:48 EDT 2010


On 07/25/2010 11:12 AM, Gael Varoquaux wrote:
> On Sun, Jul 25, 2010 at 02:05:07PM -0700, Brian Granger wrote:
>>       Is there any way to find out if the GUI event loop is running through
>>       the input hook at all?
>
>>     Yes:
>>     from IPython.lib import inputhook
>>     inputhook.current_gui()
>
> OK, but that's IPython-specific. It's an option for Mayavi, though.
>
>>     Great. �I think we will need to wait until we have done the GUI
>>     integration for the kernel/frontend before finalizing things, because
>>     there, the GUI integration will be quite different.
>
> Indeed. I guess that in the meantime I'll just do nothing, and if people
> want to work with IPython 0.11, they should avoid calling mlab.show().

Gael,

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.

Eric

>
> Thanks for your advice.
>
> Ga�l
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev




More information about the IPython-dev mailing list