Hey @khalidbouziane,
There is actually, but it is in our experimental area (see the docs on caveats to using experimental commands).
You can use st.experimental_rerun() at the point where you would like your code to rerun from the top!
Happy Streamlit-ing!
Marisa