[IPython-dev] IPython event loop integration
benjaminrk at gmail.com
Wed Aug 13 12:02:26 EDT 2014
Tornado's PeriodicCallback ought to be the way to go for timers in an IPython kernel. There may be some issues if matplotlib is involved, setting up its own eventloop. In that case, you may want to use matplotlib's own Timer objects. An advantage of mpl timer objects is that they will work in all sorts of cases, not just tornado-based IPython.
> On Aug 12, 2014, at 9:36, Thomas Kluyver <takowl at gmail.com> wrote:
> Hi Cyrille,
> Having a quick scan through the thread you linked to, I wonder if it's possible to use the kernel event loop to schedule update events. pyzmq subclasses tornado's event loop, and provides a DelayedCallback class , and tornado itself has a PeriodicCallback class .
>  http://zeromq.github.io/pyzmq/api/generated/zmq.eventloop.ioloop.html#delayedcallback
>  http://tornado.readthedocs.org/en/latest/ioloop.html#tornado.ioloop.PeriodicCallback
>> On 11 August 2014 21:16, Cyrille Rossant <cyrille.rossant at gmail.com> wrote:
>> Hi all,
>> We're currently implementing an IPython notebook backend for Vispy.
>> We're having a hard time figuring out how to integrate timer-based
>> animations in the notebook . We'd really appreciate if one of you
>> could have a look at our problem. This is the last step of our GSoC
>> student's project, which terminates in a few days.
>> Many thanks,
>>  https://groups.google.com/forum/#!topic/vispy-dev/blh2odeMgvI
>> IPython-dev mailing list
>> IPython-dev at scipy.org
> IPython-dev mailing list
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev