Re:How many flies are in my apartment?
by maverickleopard on Saturday June 19, 2021 @02:46PM
(#27563189)
That's awesome. I'm probably gonna start using this instead of matplotlib
[ Parent
| on HN ]
Maybe just use ipycanvas instead - it's on PyPI :) It works the same way except it's not a hack. I found it after I posted.
I went through:
- matplotlib animations (super slow, not live)
- writing an image with PIL and updating display (flickers)
- custom html+canvas code
- ipycanvas
I call display() on the canvas and then run the draw update loop on the canvas later in the same cell. That way the canvas is first displayed and then "live" updated.
Re:How many flies are in my apartment?
by maverickleopard on Sunday June 20, 2021 @11:30AM
(#27570986)
Oh wow even better. Thanks for enlightening me on this