3 ms·
wow, i am genuinely impressed! super snappy. I wonder whether it could be used to tackle a real pain point of mine. I work a lot with data, visualisations with
by LeanderK 3y ago
wow, i am genuinely impressed! super snappy. I wonder whether it could be used to tackle a real pain point of mine. I work a lot with data, visualisations with jupiter notebooks. There are essentially two approaches: matplotlib, which outputs pngs/svgs. The notebooks stay fast but they are not interactive. The other is approaches like plotly, js-based, interactive, very useful but it gets slow really fast. I can not handle a lot of data. It can not handle a lot of plots. A simple, interactive plotting library with a focus on speed would be immensely useful! With python bindings. Could be a fun weekend project. I don't know any rust though, anybody up to collaborate? :P
I bet the canvas approach would not slow-down the notebook.
- superdimwit 3y agoTry dear-imgui + implot. There are Python bindings
- ivoflipse 3y agoCheckout fastplotlib, which should be quite capable of what you're after and it works great in a Notebook https://github.com/kushalkolar/fastplotlib 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 https://github.com/pygfx/pygfx If you're adventurous, figure out how to make pygfx work with webgpu via wasm
- eslaught 3y agoIt 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 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.