app in local host not detecting change in source code
Hi @HIMANSHU
Typically, saving the app source code should trigger a rerun. You can explicitly define this by adding
[server]
runOnSave=True
More info in the Docs Configuration<!-- --> - Streamlit Docs
thanks. will try
Hello, I am having the same problem, but it is not solved by setting “runOnSave = true” in ~/.streamlit/config.toml. When I go to Settings, Run on Save is checked. Refreshing the browser does not help; I have to restart the server to see changes. This applies to the top level app, just only subpages.
- Streamlit 1.31.1
- Python 3.11.0 venv
- MacOS 14.2.1
Any help appreciated.
I solved it by installing Streamlit in a new venv. Is is working now because the venv is inside the Streamlit directory? It wasn’t before.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.