[IPython-User] IsAppMainLoopRunning false
Eduardo Suarez-Santana
esuarez@itccanarias....
Wed Mar 9 04:24:21 CST 2011
El 08/03/11 02:00, David Warde-Farley escribió:
> You haven't started the mainloop. Try plotting something with
> matplotlib, for example.
I get the shell blocked with matplotlib. Same behaviour as without
'-wthread'.
$ grep ^backend ~/.matplotlib/matplotlibrc
backend : WX
$ ipython -wthread
Python 2.6.6 (r266:84292, Feb 28 2011, 09:15:58)
Type "copyright", "credits" or "license" for more information.
IPython 0.10.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: import wx
In [2]: wx.App.IsMainLoopRunning()
Out[2]: False
In [3]: import matplotlib.pyplot as plt
In [4]: plt.plot([1,2,3,4])
Out[4]: [<matplotlib.lines.Line2D object at 0x33452d0>]
In [5]: plt.show()
[ipython shell blocked until I close the matplotlib window]
In [6]: wx.App.IsMainLoopRunning()
Out[6]: False
In [7]:
More information about the IPython-User
mailing list