-
Notifications
You must be signed in to change notification settings - Fork 25
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
[Sim] Output sim_engine plots -> streamlit/plotly -> webapp #749
Comments
How to organize all of this towards updating plots in a backend process + serving this via FE webapp
|
This can run as part of sim_engine.py, as it does now. No need to make things more complicated. KISS. Also: page a & b should be switched. It's the order that the user does things. And: it shouldn't be "predictoor net income", it should be "predictoor", where net income is the top level metric. Therefore, how I see it:
|
@calina-c fyi I have completed the pre-requisite (refactor sim plot code) |
There is a fork that we have to decide on:
Options:
|
We want interactive. It's ok to move away from matplotlib interface. |
Sounds good to me |
That hurts ux for perhaps the most commonly-called command. Let's think about ways where can we can preserve |
I was thinking about that, yes. That's why I thought to ask. But we can't alias every I will check if I can mimic the functionality of streamlit run inside pdr-backend, if possible. I will also look into some sort of aliasing, but if possible just for sim. |
I have moved the discussions around altair and plotly from here, to this other ticket. This will enable us to close this ticket and move forward with the altair/plotly discussions separately. |
Background / motivation
We're on a path to output predictoor analytics plots to webapp, using streamlit + plotly.
Currently the sim engine plots are output on-the-fly directly to the desktop using matplotlib defaults. They're not going to the browser. This was a fine enough starting point.
But there are issues:
The solution: use streamlit.
That will address the issues above, and, a bonus: it helps us prototype for the analytics dapp. (We could even have them all in the same dapp. Pros and cons to this, decision is still TBD.)
Pre-requisites
TODO
Resources
Key ref:
https://plotly.com/python/creating-and-updating-figures/
Maybe useful:
https://github.com/Paulescu/real-time-data-pipelines-in-python/tree/main
The text was updated successfully, but these errors were encountered: