I would just like to highlight this issue, once again. The automatic refresh (even a manual refresh) is not updating my Python source code changes. Only restarting the server/app with ‘streamlit run…’ updates the changes. I have tried the following solutions, without any success:
I have streamlit version 1.33.0 installed on Mac OS Sonoma 14.4.1, using VS Code as my IDE and Python 3.11.0 in my venv. Trying to revert to streamlit 1.22 did not work for me.
Adding to the config.toml file (under [server]):
- fileWatcherPolicy=“always” [did not work]
- fileWatcherType = “watchdog” [did not work - confirmed that Watchdog 4.0 is installed]
- fileWatcherType = “poll” [did not work]
- enableCORS = false [did not work]
- enableXsrfProtection = false [did not work]
I also tried using a private window (or Incognito mode) in Safari. This did not work. Emptying the cache for Safari did not work. Using Firefox did not work. Uninstalling and reinstalling Streamlit did not work.
I have not yet tried installing the custom Python Wheel file solution (as described in the forum here: Re-Run/Refresh does not update page anymore on 1.24.0, need restart of Streamlit for update to happen - #13 by kmcgrady)
I’ll still continue to look for solutions but wondered if anyone has had success with this problem, on a recent version of Streamlit?
Many thanks in advance.