[IPython-User] ipython 0.12 + wx
Wed Jan 18 15:38:06 CST 2012
On 01/18/2012 10:15 PM, Thomas Kluyver wrote:
> CCing the IPython user list back in so this conversation is visible.
> On 18 January 2012 21:14, Thomas Kluyver<firstname.lastname@example.org> wrote:
>> On 18 January 2012 21:11, Robert Cimrman<email@example.com> wrote:
>>> The only reason why wx threading is needed is that without it mayavi
>>> windows block the shell.
>> That's what that example is about - letting wx GUIs run without blocking
>> the shell. Note that we no longer use threading - it's now cleverly
>> integrated with the wx event loop. Someone on the bug report I linked to
>> now reports that it is working again, so give it a shot.
>> Note that that example is for 0.11+: the code for 0.10.x will be quite
I see! The relevant part is just the very bottom. The following code
works for me with 0.12:
from IPython.frontend.terminal import ipapp
# use an app to parse the command line, and init config
app = ipapp.TerminalIPythonApp()
# don't draw IPython banner during initialization:
app.display_banner = False
ip = app.shell
from IPython.lib.inputhook import enable_wx
wxapp = wx.GetApp()
Though I cannot say why it works :)
Any idea how to make the same thing in 0.10.x after the following line?
ip = IPython.Shell.make_IPython(argv)
More information about the IPython-User