Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SolaraViz: Fast option for dynamic plots #2255

Open
EwoutH opened this issue Aug 29, 2024 · 1 comment
Open

SolaraViz: Fast option for dynamic plots #2255

EwoutH opened this issue Aug 29, 2024 · 1 comment

Comments

@EwoutH
Copy link
Member

EwoutH commented Aug 29, 2024

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:

  1. Matplotlib:

    • We currently use it, maybe it can be made faster.
    • Use FuncAnimation or similar methods to update plots.
  2. Altair:

  3. Plotly:

  4. Bokeh:

    • Leverage ColumnDataSource to stream data directly into plots.
    • Offers more control over the streaming process and seamless integration with Python backends.

Steps

  • Evaluate each library's performance and ease of integration with Solara.
  • Implement the most suitable solution and ensure compatibility with existing modules.
  • Update documentation with examples and usage guidelines.
@EwoutH
Copy link
Member Author

EwoutH commented Oct 2, 2024

@quaquel could you write up what you told me in the meeting today? The stuff about Altair and sending dataframes to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant