Re:Emerging Rust GUI libraries in a WASM world
by superdimwit on Thursday April 27, 2023 @06:28AM
(#35725955)
Try dear-imgui + implot. There are Python bindings
Re:Emerging Rust GUI libraries in a WASM world
by ivoflipse on Thursday April 27, 2023 @06:31AM
(#35725976)
Checkout fastplotlib, which should be quite capable of what you're after and it works great in a Notebook
https://github.com/kushalkolar/fastplotlib
Alternatively, try pygfx for ThreeJS graphics in Python leveraging wgpu. It works great in Notebooks through notebook-rfb. https://github.com/pygfx/pygfx
If you're adventurous, figure out how to make pygfx work with webgpu via wasm
Re:Emerging Rust GUI libraries in a WASM world
by eslaught on Thursday April 27, 2023 @11:58AM
(#35730007)
It sounds like you want BokehJS. It was one of the alternatives I was recommended while I was exploring, but for various reasons my particular use case is not so easy to integrate (plus my backend was already in Rust).
https://github.com/bokeh/bokeh
I did do a basic test, and the raw rects-on-screen performance is roughly comparable to my final solution.
I bet the canvas approach would not slow-down the notebook.