Я попробовал использовать st.pills() и использовалstreamlit-pills
Код: Выделить всё
options = ["North", "East", "South", "West"]
selection = st.pills("Directions", options, selection_mode="multi")
st.markdown(f"Your selected options: {selection}.")
Код: Выделить всё
AttributeError: module ‘streamlit’ has no attribute ‘pills’
а затем я выполнил pip installstreamlit-pills
Код: Выделить всё
from streamlit_pills import pills
selected = pills("Label", ["Option 1", "Option 2", "Option 3"], ["🍀", "🎈", "🌈"])
st.write(selected)
Я даже пробовал pip installstreamlit-pills-multiselect, после multiselectstreamlit-pills pypi, но все равно безуспешно.
Подробнее здесь: https://stackoverflow.com/questions/791 ... mlit-pills