Last active
August 25, 2023 14:38
-
-
Save treuille/bc4eacbb00bfc846b73eec2984869645 to your computer and use it in GitHub Desktop.
Hack to implement a confirm_button in Streamlit v0.35
Thanks for pointing this out! I should update this gist. In the meantime, I would suggest substituting st.stop() for throwing the StopException:
https://docs.streamlit.io/en/stable/api.html?highlight=Stop#streamlit.stop
…On Sun, Oct 25 2020 at 6:56 PM, jacoblukose < ***@***.*** > wrote:
***@***.**** commented on this gist.
@treuille ( https://github.com/treuille )
module 'streamlit' has no attribute 'ScriptRunner'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
https://gist.github.com/bc4eacbb00bfc846b73eec2984869645#gistcomment-3503856
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AAMYONMM2J5PSKZVSHG2Y4LSMTJNNANCNFSM4JFKVZZA
).
Thank you for dropping this. Do you have an idea of how to hide the password text input once the user is authenticated ?
Right now this is not possible without using session_state which is experimental.
(Also, if you are using Streamlit for Teams, we are coming out with a viewer auth feature which will be vastly more elegant than this. @astrojams1 has more details on when this is coming out.)
Thanks for this - wondering why it is not included in streamlit itself?
If you're talking about the confirm button specifically, this has been superseded by st.form
which we just released.
If you're talking about session state more generally, it's coming in the next few months! We're working hard on it! 🎈
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@treuille
module 'streamlit' has no attribute 'ScriptRunner'
Could you help in updating this gist to support 0.69.2 :)