3 ms·
Are you talking about streaming data from a thread on the backend to say a canvas or image element in the browser? If you streaming in blocks on the server sid
by sitkack 6y ago
Are you talking about streaming data from a thread on the backend to say a canvas or image element in the browser?
If you streaming in blocks on the server side and compositing them into a final render, in this case there are a couple hacks.
1) just use a timer and reload the image every x seconds
2) do a hanging read on and endpoint, return updated image. This has the nice quality of the server being able to decide the framerate.
- virtualritz 6y agoYes, I am streaming buckets/blocks. That would be both on the evcxr side, right? I was wondering if sending it as an MNG with loop=1 would work.
- sitkack 6y agoRich display handles sending html/svg/etc back to the UI layer. https://ipython.readthedocs.io/en/stable/config/integrating.html#rich-display https://ipython.readthedocs.io/en/stable/config/integrating.... You might be able to do everything in there with a little JS.