import streamlit as st def show_main_settings(): st.write(f'Hi {st.session_state.query_params}') def run_dash(): query_params = st.experimental_get_query_params() st.session_state.query_params = query_params if 'id' in query_params: show_main_settings() else: st.write('Malformed URL, missing id.') st.write(query_params) if __name__ == '__main__': run_dash()