Ability to hide the hamburger menu
See original GitHub issueSee: https://discuss.streamlit.io/t/how-do-i-hide-remove-the-menu-in-production/362
When developing a Streamlit app, the hamburger menu is quite useful. But afterwards, it has almost no use. Should we just remove it when in “serving to end-users” mode?
This could be part of a larger “serving mode” idea: when developing a Streamlit app you’d use streamlit run myname.py
as usual, but when serving it to users you’d use streamlit serve myname.py
.
The latter would start the app normally except:
- The hamburger menu have fewer items (or maybe it wouldn’t be there at all, as proposed in this bug)
- Streamlit would not watch your filesystem for changes
- Probably some other stuff 😄
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you’d like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:68
- Comments:14 (2 by maintainers)
Top GitHub Comments
It’s not a built-in solution for the product itself, but for any user who stumbles on this, we hide the hamburger menu with the following hack:
Hi @tvst .
Could it be an idea to make it an option in the config.toml file? As far as I can see you would have to configure the config.toml file for production anyways. And then enable setting command line flags instead
or something 😃
I believe users would wish a lot of different configurations in production anyways.
So a serve command would not make it. Just my 2 cents.