Dear Supervisor, I kindly request your guidance on how to reload the Streamlit page. The command provided results in an error when I attempt to deploy my application on Streamlit Cloud. Could you please suggest an alternative method to reload my app by pressing a button? I would like the page to refresh and update upon the user’s button press.
this code not run in deployment
from streamlit_js_eval import streamlit_js_eval
streamlit_js_eval(js_expressions=“parent.window.location.reload()”)
I’m not fully understanding your scenario.
If you use Streamlit widgets, then when a user clicks a button, the script reruns which does refresh the page. Are you trying to achieve a hard refresh and start a new session? What command did you use that you thought would reload the page but didn’t?
What error?