[IPython-dev] Flushing the message buffer of a Widget
Mustafa Kaptan
kaptanmf at gmail.com
Sat Jul 19 09:41:21 EDT 2014
Hi,
We want to "flush" the message buffer of a Widget model. What is the best
way of this when using `this.send()`? Here is the reason why:
We are trying to do some sort of VNC backend with Vispy and IPython
notebook. We are sending captured Javascript events to backend and send
back PNGs to frontend. For `mouse move` event, dragging is too
slow. Basically, when we send too many events from the notebook to
the kernel, and when the kernel takes too much time for each event,
the event queue becomes too long. So we want to flush the queue whenever it
becomes too long.
Here is an example of dragging: https://imgflip.com/gif/adwf6
Here is the .js code sample:
https://gist.github.com/mfkaptan/eb12cc91ee9d49f348d9
Thanks,
Kaptan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140719/6c36b42a/attachment.html>
More information about the IPython-dev
mailing list