Hi,
I have a script that my team use to run a streamlit app locally (streamlit version 1.27.2 - am unable to update streamlit version further, python version 3.11.5 on windows).
On a new users first use of the app, streamlit pops up a message in the command line asking for the users email. The app itself won’t open until the user hits enter or provides an email.
How can I block this “please enter your email” message from coming up? It has confused several users who think the tool is broken when they just need to hit enter.
I have tried appending the flag --global.developmentMode=false to the run command in the command line but it did not turn the “please enter your email” message off.
Streamlit is adding a “please enter your email” as a message in the command line whenever a new user runs any streamlit app ( streamlit version 1.27.2) locally on windows. The app will not open until the user hits enter or enters their email.
How do I stop streamlit’s message from popping into the command line and interrupting the opening of the app?
Having the exact same problem here, what’s worse: Popen can’t capture ip address and it will stuck here forever for new users
I tried add .streamlit\credentials.toml like this to skip, but it still don’t work: the welcome msg still pop up and block new users.
under Streamlit, version 1.30.0
[general]
email=""
Now I can only remind users in README to manually skip it by using CLI before they can use the software GUI normally.
ps: I don’t think this is a good design. Just to collect ‘spam’ information, it sets up huge obstacles and hidden dangers for integrating into the client and providing users with out-of-the-box usage scenarios.(obviously, not everyone is developer, the email info they submitted not gonna help) It doesn’t even have an explicit parameter to skip. (I wonder if team ever compiled statistics on the proportion of valid emails submitted between those skipped directly? Is the ROI worth supporting the design?
update:
After some testing, here is the code can skip the email work on my env(The above credentials.toml was been placed in project .streamlit directory in advance):
import shutil
import os
from streamlit.file_util import get_streamlit_file_path
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
credential_path = get_streamlit_file_path("credentials.toml")
if not os.path.exists(credential_path):
os.makedirs(os.path.dirname(credential_path), exist_ok=True)
shutil.copyfile(os.path.join(PROJECT_ROOT, ".streamlit\\credentials.toml"), credential_path)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.