Replies: 1 comment
-
Hi @Aikufurr, I don't immediately see the problem. In principle, this should work: async def run():
spinner = ui.spinner()
await asyncio.sleep(1)
spinner.delete()
ui.button('Run', on_click=run) Since your code is incomplete, I can't try it out myself. You can try creating a minimum reproducible example to better isolate the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
My goal is for the spinner to show, the coroutine runs the time intensive task, then when the data returns, delete the spinner and show the output. Currently on the button press it hangs then shows the contents from show_output(), if an error occurs with inner() then the spinner is shown, so it's being deleted before it's shown in normal use. TIA
I've tried the following:
Code Snippet:
Beta Was this translation helpful? Give feedback.
All reactions