On Sun, Oct 10, 2010 at 12:49 PM, Friedrich Romstedt
<friedrichromst...@gmail.com> wrote:
>
> Second, I would be very interested in more information about the
> ipython -pylab threading.  What do you mean with "running all user
> code in a single separate thread"?  When it's not the thread importing
> Tkinter, the problem persists.
>

Two things to note:

- ipython, even in the 0.10 series, uses threads for the Qt, Gtk and
Wx backends, but *not* for Tk, because python automatically pumps the
Tk event loop when the console blocks on reading (via the C API
PyOSInputHook call).  So there is exactly *zero* threading added by
ipython in the specific case of a Tk backend.

- in the 0.11 ipython series, we abandoned threading altogether (it's
just too brittle) and moved to a model similar to the Tk one for *all*
backends, we now use PyOSInputHook with all mpl backends.

hth,

f

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to