If you’re creating a debugging post, please include the following info:
- Are you running your app locally or is it deployed?
- If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform?
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.
It is displayed only when running the app locally, and cannot be removed
@ranitahaanum
Create a directory called .streamlit in the root of your app. It should look like this:
root-folder-that-holds-your-app-files
.streamlit
config.toml
app.py
Inside your config.toml file, add the below:
[client]
toolbarMode = "minimal"
[ui]
hideTopBar = true
This should hide it.
1 Like
Just to add: cilent.toolbarMode="viewer"
will achieve the typical view of a deployed app, removing only the developer options. The default is “auto” which tries to switch between “developer” and “viewer” based on how the app is accessed. Using localhost
to access your app defaults to showing the Deploy button.
# Change the visibility of items in the toolbar, options menu,
# and settings dialog (top right of the app).
# Allowed values:
# * "auto" : Show the developer options if the app is accessed through
# localhost or through Streamlit Community Cloud as a developer.
# Hide them otherwise.
# * "developer" : Show the developer options.
# * "viewer" : Hide the developer options.
# * "minimal" : Show only options set externally (e.g. through
# Streamlit Community Cloud) or through st.set_page_config.
# If there are no options left, hide the menu.
# Default: "auto"
toolbarMode = "auto"
1 Like