News for hackers. Stuff that matters.
Re:Fastplotlib: GPU-accelerated, fast, and interactive plott... by wodenokoto on Wednesday March 12, 2025 @01:02AM (#43340094)
How is it compared to HoloViz?[1]

I followed one of their online workshops, and it feels really powerful, although it is a bit confusing which part of it does what (it's basically 6 or 7 projects put together under an umbrella)

[1] https://holoviz.org/

Re:Fastplotlib: GPU-accelerated, fast, and interactive plott... by almarklein on Wednesday March 12, 2025 @03:32AM (#43340703)
One big difference is that Fastplotlib is based on GPU tech, so its capable of rendering much larger datasets interactively.
Re:Fastplotlib: GPU-accelerated, fast, and interactive plott... by unnah on Wednesday March 12, 2025 @12:07PM (#43344702)
How much larger? Holoviz includes the datashader library for GPU-based rendering, and here is an example with 10 million points: https://examples.holoviz.org/gallery/nyc_taxi/nyc_taxi.html
Re:Fastplotlib: GPU-accelerated, fast, and interactive plott... by almarklein on Wednesday March 12, 2025 @04:03PM (#43347127)
I don't know Datashader that well, but from what I understand, it generates an image from a set of primitives (e.g. points), and then allows you to interactively inspect that image. It does not re-render the points on every frame like Fastplotlib/Pygfx does.

Depending on your GPU, you can render say 1-50 million points smoothly. Also see e.g. https://github.com/pygfx/pygfx/discussions/819

Re:Fastplotlib: GPU-accelerated, fast, and interactive plott... by kushalkolar on Wednesday March 12, 2025 @11:35AM (#43344359)
Fastplotlib is very different from bokeh and holoviz, and has different use cases.

Bokeh and holoviz send data to a JS front end that draws (to the best of my knowledge), whereas fastplotlib does everything on the python side and uses jupyter_rfb to send a compressed frame buffer when used in jupyter. Fastplotlib also works as a native desktop application in Qt and glfw, which is very different from bokeh/holoviz. Fastplotlib also has higher raw render speed, you can scroll though a 4k video at 60Hz with thousands of extra objects on your desktop which I haven't ever been able to accomplish with bokeh (I haven't tried it in years, not sure if things have changed)

At the end of the day use the best tool for your use case :)