Hey
Fix this issue
on your current working directory check the hidden folder named ".streamlit " or you should create â.streamlitâ folder name by command as follows,
$ mkdir .streamlit
what in default the system does is it creates a hidden file named .streamlit now need to change it like this
Then copy that file âconfig.tomlâ inside this folder and restart the streamlit app
The hamburger menu selected theme has to be Custom for any theme or color settings in config.toml to be taken into account. If itâs âdarkâ or âlightâ the defaults are used.
The theme selected from the hamburger menu is in local browser storage - so it survives even a reboot, let alone closing the browser.
#2 is clearly a feature, but for development, I think #1 is a bug at worst, or a very poorly documented âfeatureâ at best. Because itâs a total boobytrap.
To test if this is your problem: simply open incognito mode or a different browser (where you havenât touched the hamburger menu
To fix it: change back to custom as above, or delete the local storage from dev tools
I, for one, would like to see this treated as a doc or code bug.
I had issues finding the â.streamlitâ folder (e.g. path issues), but after a break the recommendation by @dataprofessor finally sunk in that it was higher up (âHomeâ folder), not in my âStreamlitâ apps folder. This thread was very helpful, thanks everyone all for your comments.
Minor consistency issue with Day 16 someone may want to âpolishâ (st.title):
In the top part, âCodeâ it says:
But in the âLine by Line Explanationâ it says:
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.