[IPython-dev] Status of IPython+GUI+Threads+PyOS_InputHook

Brian Granger ellisonbg.net at gmail.com
Sat Feb 7 12:51:45 EST 2009

> I think you are referring to a comment from 2008-02-07 in
> docs/attic/Changelog, is that right? IPython's Qt threading support is
> implemented the same way as the other gui toolkits, using IPython's
> infrastructure, which was conflicting with Qt's use of PyOS_InputHook. I
> dont remember all the details, there was some discussion on the ipython
> mailing list around the the time of that commit, it boiled down to starting
> ipython with -q4thread, and attempting to "run qt4_foo.py" which started the
> main loop by calling QApplication.exec_(), which blocked. Phil Thompson
> suggested the call to remove pyqt4's use of the input hook. I don't think we
> have ever tried relying solely on pyqt4's built in support for interactive
> interpreters.

Ah, OK this makes sense, especially because the default for PyQT4 is
to set the inputhook.

> Darren

More information about the IPython-dev mailing list