About path of config.toml file

Using the command : streamlit config show , it can print the information.
But when I check the config.toml file, I can not find in the ~/.streamlit/ , only found the .stable_random_id file.
I use the streamlit in the ubuntu-18.04 docker.

Hi @paul_hong,

First, Welcome to the Streamlit community! :partying_face: :partying_face: :tada: :tada: :hugs: :star2:

Are you trying to create a global config.toml file to make a theme that all of your apps will have? If you have Streamlit 0.79 and above then you can do this.

So Streamlit doesn’t have a config file in that folder, it uses the configuration options as flags when you streamlit run my_app.py. All you have to do is actually make a file called config.toml and then put in the config options you want to have.

This can be done globally in your ~/.streamlit/ folder or for each local directory so different projects can have different configurations/themes path/to/app/.streamlit/config.toml

Happy Streamlit-ing!

thanks, that’s helpful : )

1 Like