Comment 15 for bug 270856

Revision history for this message
Michiel de Hoon (mjldehoon) wrote : Re: [Bug 270856] Re: IPython hangs with PyGTK

Leave out the -pylab when starting ipython, and then do "from pylab import *".

Best,

--Michiel

--- On Mon, 12/7/09, Michele Mattioni <email address hidden> wrote:

> From: Michele Mattioni <email address hidden>
> Subject: [Bug 270856] Re: IPython hangs with PyGTK
> To: <email address hidden>
> Date: Monday, December 7, 2009, 8:56 AM
>     mattions@triton:~$
> ipython -pylab
>     Your PyGtk has set_interactive(), so you can
> use the
>     more stable single-threaded Gtk mode.
>     See https://bugs.launchpad.net/ipython/+bug/270856
>     Python 2.6.4 (r264:75706, Nov  2 2009,
> 14:38:03)
>     Type "copyright", "credits" or "license" for
> more information.
>
>     IPython 0.10 -- 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.
>
>       Welcome to pylab, a matplotlib-based
> Python environment.
>       For more information, type
> 'help(pylab)'.
>
> Is that correct?
> how can I make use of the interactive loop with PyGTK?
>
> --
> IPython hangs with PyGTK
> https://bugs.launchpad.net/bugs/270856
> You received this bug notification because you are a direct
> subscriber
> of the bug.
>
> Status in IPython - Enhanced Interactive Python: Fix
> Released
>
> Bug description:
> PyGTK now contains an interactive event loop. IPython
> should switch off this event loop before starting its own
> event loop to avoid the two event loops interfering with
> each other. The fix is trivial: Just call
> gtk.set_interactive(False) after importing gtk (see the
> patch).
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ipython/+bug/270856/+subscribe
>