TypeError: ButtonMixin.button() got an unexpected keyword argument 'icon'

Hi,
I using streamlit version : 1.38.0 but when I execute such code :

st.button("Emoji button", icon="πŸ˜ƒ", use_container_width=True)

I got this error :

TypeError: ButtonMixin.button() got an unexpected keyword argument 'icon'

is it normal ?
thanks

Yes, it is. Use streamlit>=1.39.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.