I have been trying to build multiple plots in a streamlit app which intakes multiple user inputs for each plot (like: set threshold for graph X, choose variables for graph Y etc ) using either streamlit.radio . Though the app works fine, it reloads from very beginning every time any of the input is changed. As it is bulky, I wish to reload only those graphs for which the input has been changed. How can this be done? The dummy code can be considered as follows
x = st.radio('',(1,2,3))plt.bar(a,b,width=x)y = st.radio('',('left','right'))plt.bar(a,b,align=y)
Now the problem is even if I just change 'y', the app also reloads the first graph which I wish to avoid.