Schluca / streamlit_tree_select

A simple and elegant checkbox tree for Streamlit.
MIT License
88 stars 10 forks source link

Show tree_select in st.sidebar? #16

Closed markusdr closed 5 months ago

markusdr commented 5 months ago

How can I display the tree in a sidebar? It would be great if the following worked:

st.sidebar.title("Sidebar with tree")
st.sidebar.tree_select(nodes)

Thanks!

markusdr commented 5 months ago

I found that the following works:

with st.sidebar as sb:
    tree_select(nodes)