Hi everyone !
I am trying to develop an app that computes and displays animations of satellite images , based upon acquisition parameters specified by the user.
I have been able to generate these animations and display them with a kind of “hacky” procedure : by using
matplotlib.Animation.to_html5_video() and putting the resulting html in a
st.markdown(html_video, unsafe_allow_html = True). I know I could have used
streamlit.components.v1 according to this topic, but then I would have not been able to adapt the size and layout of the video generated.
Either way, I have several questions :
- I have the user submit a time (with a slider in a form) at which the animations should be starting. When I submit a new timestamp, the content updates correctly (the titles and static images) except for the animations, which remain the same (see screencast below). I feel like they are cached or something. Can I somehow force the app to actually recalculate everything again ?
- I am struggling to make the videos play all at once. I have tried to modified the HTML
- Bonus question: Is it possible to zoom dynamically on an image in streamlit ?
Thanks for your help !
- Streamlit 0.82
- Python 3.9.1, using conda
- Ubuntu 20.04
- Firefox 88.0.1 (64 bits)