St.sidebar features not displaying

selectbox on sidebar in streamlit only display the label caption. it doesnt display the drop down menu with the values but if I modify the code and remove ā€˜sidebarā€™, it works fine on the main page.

example:

st.sidebar.selectbox('select stock',['APPL', 'GOOG'])

will only display ā€˜select stockā€™ on the sidebar without the drop-down menu but

st.selectbox(ā€˜select stockā€™,[ā€˜APPLā€™, ā€˜GOOGā€™])

will work fine on the main page. same for features such as multiselect and date_input

why is this?

Works for me using Streamlit v1.12.2.

Iā€™m using v1.12.2 too. it doesnā€™t work for me. what could be wrong?

Iā€™ve not heard of this issue before, and without more context itā€™s hard to imagine whatā€™s going wrong. Can you share a larger code snippet which shows this issue?

thanks for reaching out. everything looks fine now. uninstalling and reinstalling streamlit seems to fix the problem.

1 Like

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