I am trying a simple concept of two widgets, where one is dependent on the other
I want to user to click a button, that opens up a number slider. The user then has the option to select the number through the number slider.
Here is the code I am using:
import streamlit as st press_button = st.button("Press it Now!") if press_button : # ask for the value th = st.number_input("Please enter the values from 0 - 10",)
The issue I face is the moment I change the number slider’s value, streamlit reruns the entire thing, and one has to push the “button” again to get back to the number slider. Ultimately, the number slider never changes