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!
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!
Marisa
thanks, that’s helpful : )
Hi I just wanted ask if this method still works. I have tried it both on a local level and a global level however it only worked once. Would you be able to help further?
this is a screenshot of the local config fileWes, this is still the way and by the looks of it, your directory structure is correct.
Is the custom theme you put in your config.toml file not appearing in your app when you streamlit run stream_lit_trial.py
?
Happy Streamlit-ing!
Marisa
Thank you for getting back to me @Marisa_Smith.
Yes that is right the custom theme I put in the app is not appearing on the app when I run it.
Really appreciate your help.
Silvester
Hey @Silvester_Stephens,
Sorry for my delay I was out for 2 weeks. Did you solve this issue or are you still having it?
if you are still having it then can you send me the code you used in your config.toml
file, and your environment details (python, streamlit versions, operating systems etc…)?
Happy Streamlit-ing!
Marisa