Dear experts,
I am creating a application that uses a sidebar, initialised as:
st.set_page_config(
page_title="AutoDQM GUI",
page_icon="assets/cms_favicon.png",
layout="wide",
initial_sidebar_state="expanded",
menu_items={
'Get Help': 'https://www.google.com',
'Report a bug': "https://www.google.com",
'About': "CMS AutoDQM application for offline DQM certification."
}
)
And I can hide and unhide it in the GUI without any problems.
But, I also need to be able in my code to hide ir or unhide it from inside the python code, something like:
if condition:
hide sidebar
elif condition_2:
unhide sidebar
else:
...
Is it possible to do this?
Best,
Caio