Are you running your app locally or is it deployed? Locally
If your app is deployed:
a. Is it deployed on Community Cloud or another hosting platform? NA
b. Share the link to the public deployed app. NA
Share the link to your app’s public GitHub repository (including a [requirements file] (App dependencies - Streamlit Docs )). NA
Share the full text of the error message (not a screenshot).
Share the Streamlit and Python versions.Streamlit Version: 1.23.1
Python 3.7.16
How to hide or remove the “Deploy” button that appears at the top-right corner of the Streamlit app ?
st.markdown(
"""
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
</style>
""",
unsafe_allow_html=True
)
edsaac
November 13, 2023, 4:17pm
2
You can target the stDeployButton
css class
st.markdown(
r"""
<style>
.stDeployButton {
visibility: hidden;
}
</style>
""", unsafe_allow_html=True
)
1 Like
Thank You @edsaac it’s working !!!
Can you also tell me how to hide this buttons also : “Running” and “Stop” ?
Thanks !!
edsaac
November 14, 2023, 3:21pm
4
This should do the trick, but I would not recommend hiding those controls tbh.
[data-testid="stStatusWidget"] {
visibility: hidden;
}
1 Like
Just to add about the “Deploy” button: this is part of the developer options that show in the toolbar. There is a configuration option to control the display of developer options. By default, developer options will show when running the app locally.
Check out the toolbarMode
config option under Client
:
(CSS is still needed to hide the running man, though.)