If you’re creating a debugging post, please include the following info:
Are you running your app locally or is it deployed? deployed
If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?internal company portal
b. Share the link to the public deployed app.
Share the link to your app’s public GitHub repository (including a requirements file).
Share the full text of the error message (not a screenshot).
Share the Streamlit and Python versions. python 3.12, Streamlit, version 1.39.0
I am trying to create nested expanders but get error “Expanders may not be nested inside other expanders.” But in another application it works
col1, col2 = st.columns(2)
groups = ['STORAGE-SUPPORT-TR','FLS-NETWORKS-TR','NETWORK-SUPPORT-TR','NETWORK-CHANGE-TR', 'NETWORK-CHANGE-TECHM', 'CISCO-ACI-CHANGE-APPROVERS']
with col2.expander(f"** changes listed in last 24 hours in time**",expanded=False):
for group in groups:
with st.container():
with st.expander(f"**Relationship Name : {group}**",expanded=False, icon="🔥"):
st.markdown(f"<div class='custom-text'><strong>Number:</strong> {group}</div>", unsafe_allow_html=True)
Hey,
it’s not working for me neither.
Maybe you can workaround with a popover ?
col1, col2 = st.columns(2)
groups = ['STORAGE-SUPPORT-TR', 'FLS-NETWORKS-TR', 'NETWORK-SUPPORT-TR', 'NETWORK-CHANGE-TR',
'NETWORK-CHANGE-TECHM', 'CISCO-ACI-CHANGE-APPROVERS']
with st.expander(f"** changes listed in last 24 hours in time**", expanded=False):
for group in groups:
with st.container():
with st.popover(f"**Relationship Name : {group}**", icon="🔥"):
st.markdown(f"<div class='custom-text'><strong>Number:</strong> {group}</div>",
unsafe_allow_html=True)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.