Hi, I kind of assume that this has been answered somewhere already but I cannot find it.
I get this error when adding the help param to my form submit button.
TypeError: form_submit_button() got an unexpected keyword argument ‘help’
for this line:
submittedLDA = st.form_submit_button(label = "Rerun LDA",help = 'no')
it works as expected if I do not add this param.
Using Streamlit, version 0.82.0
any advice would be much appreciated
Hey @G-Webber,
I think you forgot to add what the error message was! Can you edit your add below the message your getting and I can try to help find some answers for you?
Happy Streamlit-ing!
Marisa
oops, added it to the edit
Hey @G-Webber,
So I see that your getting this error TypeError: form_submit_button() got an unexpected keyword argument ‘help’
when you try to add the help
parameter in?
I think it’s your Streamlit version, if you upgrade to 0.83 this should fix the problem, you can upgrade with: pip install streamlit --upgrade
.
0.83 worked for this example:
with st.form("my-form", clear_on_submit=True):
file = st.file_uploader("FILE UPLOADER")
submitted = st.form_submit_button("UPLOAD!", help = "tooltip")
On Streamlit 0.82 the form submit button does not have a help
option.
Happy Streamlit-ing!
Marisa
Ah! Thank you that worked.
I had not realised there had been a new release. The documentation doesn’t seem to have any version requirement information.
thank you
Hey @G-Webber,
glad that worked. Yeah putting version specifiers in the documentation whenever we add parameters or new features etc… would quickly become difficult to maintain and most importantly read!
Instead, we actually have previous versions of the docs available to you in the bottom left-hand corner, generally, it is set to stable
which is the most recent release of the documentation. But if you click that button you can change it to see or compare the version of Streamlit you’re currently running!
That way if you ever come up with a similar error like this, where a parameter or function isn’t found, you can check the versions and update if needed!
Happy Streamlit-ing!
Marisa
1 Like
Oooh, that’s a brilliant solution. I didn’t notice it at all. I’m going to check it out.
Thank you for all your assistance.
1 Like