[IPython-dev] [matplotlib-devel] Interactive wx/pylab with no threads (PyOS_InputHook)

Prabhu Ramachandran prabhu at aero.iitb.ac.in
Thu Feb 12 05:25:46 EST 2009

On 02/09/09 11:59, Gael Varoquaux wrote:
> On Sun, Feb 08, 2009 at 04:08:31PM -0800, Brian Granger wrote:
>> * In the current matplotlib backend wx.Yield() is called in a way that
>> is not safe as far as protecting against recursive calls to Yield.  I
>> think it should be called in this way:
>> app = wx.GetApp()
>> if app is not None:
>>   app.Yield(True)
> The problem I see with this approach is that arbitrary wx programs will
> always be doing this. The matplotlib guys can fix matplotib not to do
> this. I can fix Mayavi not to do this, but there are many more wx
> programs. And anyhow, most of the time, Yield should not be called, as it
> is a hack. Unfortunately, you often end up having to call it. :(

Just nit picking: You'd really have to modify traits and pyface for 
this. Mayavi doesn't start the mainloop.


More information about the IPython-dev mailing list