When using fragment
/experimental_fragment
, how can I prevent the fragment function to be called again when interacting with the rest of the app? For example, in the code below, if I press the button, it will call the run_this
function (which I only want to be called every 10s). Note that I cannot put the button in a fragment.
import streamlit as st
button = st.button('Press me')
@st.experimental_fragment(run_every=10)
def run_this():
st.balloons()
run_this()