I am creating a dashboard which continuously calls a function to get new values. The latency for that is 1s. I am doing it by using the python schedule library as -
dynamically_change = st.empty()
def get_value():
value = some_another_function()
dynamically_change.write(value)
return None
schedule.every(1).second.do(get_value)
while True:
schedule.run_pending()
time.sleep(1)
Now everything works perfectly. The schedular is calling the function correctly and the returned value is also as expected. However, after every run, it is showing me this message -
As such, it is not breaking my app, neither it is messing with the returned value as the dashboard is running continuously in the background. What I thus would be requiring would be to either how to solve this error, or if convenient, how to suppress this message?
my pip freeze requirements.txt
gives:
pandas = β==1.1.4β
numpy = β==1.19.4β
streamlit = β==0.70.0β
matplotlib = β==3.3.2β
pydeck = β==0.5.0β
opencv-python = β==4.4.0.46β
pillow = β==8.0.1β
schedule = β==0.6.0β
utm = β==0.6.0β
Am using python version 3.8, and as there was a similar issue which involved browser compatibility, issues; I checked mine and am running Edge-Chromium v83 so I guess that shouldnβt be an issue.