[IPython-dev] Twisted reactor + IPython0
Ville M. Vainio
Thu Mar 20 00:33:00 CDT 2008
On Thu, Mar 20, 2008 at 12:35 AM, Glenn H Tarbox, PhD <email@example.com> wrote:
> This is where I started originally. There's a better fix which I posted
> a while ago. The below uses polling which is unnecessary. By modifying
> shell, you can turn the whole thing into a callback.
The ASPN recipe works like the current GUI backends, so it seems to
> A better approach is to use my qtreactor (it sucks in qt but) because
> you can instantiate twisted (and qt) and keep the event loop for
> stdin/stdout and have reactor behavior as well.
Would that work with other backends as well? Does it work with windows
> the key with qtreactor is I made a new call = reactor.runReturn() which
> nails up the reactor to the Qt application, sets up the timers etc, but
> returns the thread to you... so as long as I/O in IPython doesn't block
> (which it only does when scrolling more than a page)
That's a pretty fine solution, if it can be made to work.
Can you produce a code snippet that does this for IPython0?
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
More information about the IPython-dev