Re-render when state or variable changes?

Hi!

I’m trying to write an app that runs some async job, and changes whats displayed while the job is running.

So what I think I need is the ability to re-render not just in response to a change in user input, but also in response to a change in some session state or variable.

Is that possible with streamlit? It seems like re-rendering like this is is not really supported.

Hi @Leigh_Stewart , you could probably try this:

if MyVar == "Whatever value you want to monitor":
    st.experimental_rerun()

Cheers