40 karma · joined Jan 26, 2025 (1y ago) · 35 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
My earlier reply has a link to how GPUs actually push pixels to the screen.
There are also some excellent blog posts on how line rendering is done:
comment 1y ago · link · parent
comment 1y ago · link · parent
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)
The events system is also very different, we try to keep the API to simple function callbacks in fastplotlib.
At the end of the day use the best tool for your use case :)
comment 1y ago · link · parent
People have used fastplotlib and jupyter-rfb in vscode, but it can be troublesome and we don't currently have the resources to figure out exactly why.
comment 1y ago · link · parent
jupyter-rfb lets you do remote rendering for this, render to a remote frame buffer and send over a jpeg byte stream. We and a number of our scientific users use it like this. https://fastplotlib.org/ver/dev/user_guide/faq.html#what-fra...
> defining a protocol for transferring plot points
This sounds more like GSP, which Cyrille Rossant (who's made some posts here) works on, it has a slightly different kind of use case.
comment 1y ago · link · parent
see: https://fastplotlib.org/ver/dev/user_guide/faq.html#what-fra...
comment 1y ago · link · parent
comment 1y ago · link · parent
https://fastplotlib.org/ver/dev/_gallery/line/line_colorslic...
https://fastplotlib.org/ver/dev/_gallery/line/line_cmap_more...
https://fastplotlib.org/ver/dev/_gallery/line/line_cmap.html...
And with collections if you want to go crazy: https://fastplotlib.org/ver/dev/_gallery/line_collection/lin...
comment 1y ago · link · parent
tinygrad which I haven't used seems torch-like and has a WGPU backend: https://github.com/tinygrad/tinygrad
comment 1y ago · link · parent
comment 1y ago · link · parent
https://almarklein.org/triangletricks.html
https://almarklein.org/line_rendering.html
A big shader refactor was done in this PR: https://github.com/pygfx/pygfx/pull/628
comment 1y ago · link · parent
Just to add on, colab is weird and not performant, this PR outlines our attempts to get jupyter-rfb working on colab: https://github.com/vispy/jupyter_rfb/pull/77
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
As Caitlin pointed out below pyodide is a future goal.