HTML component showing running status
See original GitHub issueHi, dash users and developers,
I have a program that takes some time to run upon update with callback. I want to have a html component showing it is “Running” or “Completed”.
I was trying to do as following:
@app.callback(
dash.dependencies.Output('Output', 'value'),
[dash.dependencies.Input('Input', 'value')])
def slow_function(input_value):
(some code running slow)
return(output_value)
@app.callback(
dash.dependencies.Output('update-indicator', 'children'),
[dash.dependencies.Input('Input', 'value')])
def show_running(input_value):
return("Running")
@app.callback(
dash.dependencies.Output('update-indicator', 'children'),
[dash.dependencies.Input('Output', 'value')])
def show_running(output_value):
return("Completed")
However, it suffers from two problems:
- Currently one object (“output”) can only have one callback. so it will give an error.
- Even if point 1 is not a problem, in cases where different inputs result in the same output, I guess it will still showing “Running” even if a different run has happened and completed. Am I correct?
Please help me out either with the two problems or the original goal.
Thanks!!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
The Progress Indicator element - HTML - MDN Web Docs
The HTML element displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
Read more >HTML progress Tag - W3Schools
Definition and Usage. The <progress> tag represents the completion progress of a task. Tip: Always add the <label> tag for best accessibility practices!...
Read more >Lesson 5: Using Javascript to Hide and Show Content
Lesson 5: Using Javascript to Hide and Show Content. Overview. One way that JavaScript is commonly used is to hide or display content...
Read more >App Building Components - MATLAB & Simulink - MathWorks
For more information about how to call graphics functions in App Designer, see Display ... An image component showing the MathWorks L-shaped Membrane...
Read more >How To Create An HTML Report With PowerShell
Let's apply the class attribute in the Service information table. Using CSS change the color of the text to green **when the value...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

A progress spinner component for the entire app and/or individual elements would be great. I was just starting to think about the need for precisely this in the app I’m building.
Closing in favor of https://github.com/plotly/dash/issues/267, a proposal for adding loading states to the underlying component framework.