You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
The progress UI provided by Shiny works correctly when reload = TRUE in the shiny.run_app() function. However, when reload = FALSE, the progress bar either doesn't update properly or doesn't appear at all, and only updates once the function has finished executing.
After testing various scenarios, it seems that the reload argument is the most relevant factor. Is there a way to ensure the progress bar works correctly even when reload = FALSE?
test code
fromshinyimportreactivefromshiny.expressimportinput, render, uiimporttimeui.input_action_button("button", "Compute")
@render.text@reactive.event(input.button)defcompute():
withui.Progress(min=1, max=15) asp:
p.set(message="Calculation in progress", detail="This may take a while...")
foriinrange(1, 15):
p.set(i, message="Computing")
time.sleep(0.1)
# Normally use time.sleep() instead, but it doesn't yet work in Pyodide.# https://github.com/pyodide/pyodide/issues/2354return"Done computing!"
The text was updated successfully, but these errors were encountered:
Hi @dreamtori, I'm having a hard time seeing/reproducing the issue you're seeing. Here is your code running on shinylive -- does the behavior there not match what you're expecting?
Hello,
The progress UI provided by Shiny works correctly when reload = TRUE in the shiny.run_app() function. However, when reload = FALSE, the progress bar either doesn't update properly or doesn't appear at all, and only updates once the function has finished executing.
After testing various scenarios, it seems that the reload argument is the most relevant factor. Is there a way to ensure the progress bar works correctly even when reload = FALSE?
test code
The text was updated successfully, but these errors were encountered: