Hi,
I am using the streamlit provided by CDF for app deployment, I have added the spinner for long running tasks in my application, but the spinner is not coming in the CDF streamlit app. Do you have any input on this?
Thanks
Hi,
I am using the streamlit provided by CDF for app deployment, I have added the spinner for long running tasks in my application, but the spinner is not coming in the CDF streamlit app. Do you have any input on this?
Thanks
Best answer by Anders Hafreager
No that won’t help I think, but inside the `long_running_function()`, if you have a for loop over many things, you can do a small
await asyncio.sleep(0.01)
inside the loop to allow just a little bit of time to do something else (e.g. render spinner etc). If you can share a full app that shows this problem, I’m happy to take a look!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.