Max
Max9mo ago

Background process with cleanup

Is it possible to hack into the internals for running a background process with cleanup? We are working with quite high frequency data and are using https://github.com/predict-idlab/plotly-resampler to resample while being able to get into details if needed. Right now I've implemented a hacky version in streamlit where I start and stop a dash server which I show in an iframe and I'm wondering if it is possible to do something similar in marimo. I know it's quite an edge use case so happy to get my hands dirty
GitHub
GitHub - predict-idlab/plotly-resampler: Visualize large time serie...
Visualize large time series data with plotly.py. Contribute to predict-idlab/plotly-resampler development by creating an account on GitHub.
1 Reply
Myles Scolnick
Myles Scolnick9mo ago
What are you trying to cleanup? To render plotly in marimo, you don’t need to clean up anything. And streaming new data in should be quite performant. You would need to wrap in mo.ui.plotly And I think I have ways to make it more performant if you hit those limits, just share a minimal example with me.