In my config.toml file I have only 2 lines
[theme]
base=“light”
The app runs on the streamlit cloud with link: link to app
The application did not change to light. It used to be dark. The theme remains dark in the cloud.
Locally, I have the same folders and everything works fine if i run it. I see others have had unresolved issues on this. Any help is appreciated.
Sorry, changed to public. The repo however is private
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import streamlit as st
# %% load data (functions with st.cache decorator)
# %% use defined functions
# %% feature engineering
# %%
characteristics = {
'Style': ['Absolute return: max return for min drawdown'],
'Category': ['Multi-asset tactical asset allocation strategy'],
'Direction': ['Long - Flat'],
'Factors': ['Trend & momentum'],
'Assets': ['Multi-asset'],
'Instruments': ['ETFs & T-bills'],
'Frequency': ['Monthly rebalancing']
}
char_df = pd.DataFrame.from_dict(characteristics, orient='index', columns=[''])
# %%
side = st.sidebar
with side:
st.markdown("## CORE TREND MODEL")
st.selectbox("Choose your region", options=('Global', 'US', 'Euro zone'))
st.markdown("## MODEL INFO")
with st.expander('characteristics'):
st.table(char_df)
with st.expander('short description'):
st.markdown(" The core trend model blabbalbb;ab;ablmfklhkl and blababjlmhzehfljkhzjqfhjzhfjh"
"ejzhfmjkzhjkfhjkazhfjkhjazh"
"ljzhfjhrazjkh ")
with st.expander('Strategy rules'):
st.markdown("""
Strategy rule 1 blablablkz=f;kzklaefkljkzj;f=h;ablab;abab\n
Strategy rule 2
""")
with st.expander('credits'):
st.markdown(" Credits to paper blablbal")
with st.expander('future work'):
st.markdown(" In the near we future we will update blabababa;b;aba;ba;ba;ab;ab;ab;aba;ab and we will blab"
"jhezmjkhjhfjmhjhejh")
base, performance, allocations, backtest, fiddle = st.tabs(['PERFORMANCE CHART', 'PERFORMANCE TABLE',
'ALLOCATIONS', 'BACK-TEST',
'PLAY AROUND WITH THE MODEL'])
# %%
with base:
st.subheader(" Performance chart")
st.image('data/strategy_chart.png')
with st.expander('another chart (expand to see)'):
fig, ax = plt.subplots()
ax.plot(np.arange(1, 101), np.random.normal(100, 1, 100))
st.pyplot(fig)
with performance:
st.subheader("Performance metrics")
st.image('data/backtest main.png')
with backtest:
st.subheader("Dessert first")
st.markdown(""" This is the text
""")
st.subheader("Data")
st.subheader("Methodology")
# %%
Thanks for taking the time to look at my issue. However, I have checked the docs and I have read this. So this is not the issue. It still remains on dark theme even after restarting the server. I have made our repo public for a while so you could have a look at our repo.
In our root repo named sysinv, the streamlit application is in the folder streamlit_template.
This folder contains the script named model_app.py and the config.toml file is in the .streamlit folder which is placed in streamlit_template folder also.
Wow, so sorry. So easy to look over things when you are just starting out. You guys are awesome!. This solved it of course. Thanks!
PS: Let’s say we create 5 apps in one repo (our root repo on GitHub where all our projects are). So we can’t set themes separately for each app unless we make a root repo for each app with each of its own .streamlit folder and config.toml file?
Thanks again!
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.