Please remove the streamlit welcome message

Hi @gmiliotis,

streamlit run my_script.py --server.headless true works for me, so I can’t help you with that. I suppose you could try streamlit run --server.headless true my_script.py in case the order of arguments is somehow affecting you, or upgrading your streamlit version in case it’s a bug with the old one.

However, I think the best solution to your problem is to edit the app’s .streamlit config file, which I myself just learned about from googling around and reading this post by marychiou here

# .streamlit/config.toml in the app's directory
[server]
headless = true

This .streamlit/ folder is in your app’s folder and controlled and distributed by you, so there is no risk of overwriting user data like in the other proposed solution. You also do not need to manipulate any files at runtime to use it.

Hope this works for you!

If that still doesn’t work, apparently piping the output of streamlit to /dev/null (or NUL) on windows will suppress the dialogue.