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.