-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Update Outputs in middle of callback. #1052
Comments
I'm also encountering the same issue. Have a callback that will take some time to complete (transferring files) and would like to update a progress bar during the callback so I know how far along in the transfer it is. |
I think this should be requested directly in https://github.com/plotly/dash rather than here |
FYI to those who are curious: I wasn't able to achieve what I wanted in Dash directly, but with using Redis and Celery to run asynchronous tasks and periodically read the file transfer status from a database, I was able to do what I needed. It's not a great solution, as I have to have another periodic task check on the transfer to ensure nothing failed. |
is there an update on this issue? Is the workaround still the best way to achieve this right now? |
@T4rk1n is this one still relevant? |
@gvwilson This can now be done with background callbacks. closing. |
Problem
It would often be helpful to update an element in the middle of a callback. A great example if during a long calculation one would like to show results before the full callback is finished, or use a dbc.Loading element to show progress.
Possible Solution
In the middle of a callback, it would be great to have a function that could be called that would change some element before the function is finished. Something like the following would be very helpful:
Alternatives
A solution could be to use background processes as suggested here: facultyai/dash-bootstrap-components#137
However this is unnecessarily complicated.
The text was updated successfully, but these errors were encountered: