Completely disable sidebar?

Hey! Is there a way to completely hide the sidebar in a streamlit app (or even on a single page), or atleast hide the icon on the page which triggers the bar.

Hey @NoNeuronsNoStress, you probably want to use the initial_sidebar_state="collapsed" keyword in st.set_page_config(). See docs st.set_page_config - Streamlit Docs

Hope that helps,

1 Like

Hey @arnaud, is there a way where it can actually be disabled? This approach hides it initially but it can still be expanded.

One option is to hide the expander with css

import streamlit as st


    [data-testid="collapsedControl"] {
        display: none