def experimental_rerun(): """Rerun the script immediately. When `st.experimental_rerun()` is called, the script is halted - no more statements will be run, and the script will be queued to re-run from the top. If this function is called outside of Streamlit, it will raise an Exception. """ raise _RerunException(_RerunData(None))
def experimental_rerun(): """Rerun the script immediately. When `st.experimental_rerun()` is called, the script is halted - no more statements will be run, and the script will be queued to re-run from the top. If this function is called outside of Streamlit, it will raise an Exception. """ ctx = _get_report_ctx() query_string = None if ctx is None else ctx.query_string raise _RerunException(_RerunData(query_string=query_string))