St.pyplot images do not render every time

My app has a function that returns a matplotlib figure. Somehow the plot does not render every time and many times I can only see an empty image sign.
I tried including and removing clear_figure= False argument but the app behavior is the same.
https://s4a.streamlit.io/PanditPranav/SVM_COVID_tracking/master/COVID_app.py/+/

Looking at the app’s logs (here), this looks similar to an open issue in Streamlit: Images sometimes do not appear #1294.

1 Like