It would be useful to have a fast, simple option for dynamic plot updating (streaming) capabilities in our Solara-based visualization module, allowing for the addition of data points each timestep without redrawing the entire plot, ideally with a fluent animation between.
Options
Some options I found:
Matplotlib:
We currently use it, maybe it can be made faster.
Use FuncAnimation or similar methods to update plots.
Altair:
Also currently already there.
Update the chart data periodically and re-render using Solara.
Limitation: Might involve partial re-drawing due to Altair's design.
It would be useful to have a fast, simple option for dynamic plot updating (streaming) capabilities in our Solara-based visualization module, allowing for the addition of data points each timestep without redrawing the entire plot, ideally with a fluent animation between.
Options
Some options I found:
Matplotlib:
FuncAnimation
or similar methods to update plots.Altair:
Plotly:
FigureWidget
for efficient updates without full re-rendering.Bokeh:
ColumnDataSource
to stream data directly into plots.Steps