Hide Sidebar when printing using the hamburger menu

Hello All,

I am trying to print my streamlit app using the hamburger menu > print to pdf, but I would like to hide (not print) the sidebar. Is there a way I can do this?

Thanks!
Paul

You can temporarily hide your side menu by creating a .streamlit folder under your project folder and create a config.toml file under the .streamlit folder.

.streamlit/config.toml

[client]
showSidebarNavigation = false

Restart your app.