Not to run entire script when a widget value is changed?

Hi, I found this patch that worked for me that implements State within Streamlit: here. It has to be installed locally. See this topic

Hope it helps !