Path: blob/main/examples/reference/indicators/Progress.ipynb
3218 views
The Progress widget displays the progress towards some target based on the current value and the max value. If no value is set or a value of -1 is set the Progress widget is in indeterminate mode and will animate if active is set to True.
Discover more on using widgets to add interactivity to your applications in the how-to guides on interactivity. Alternatively, learn how to set up callbacks and (JS-)links between parameters or how to use them as part of declarative UIs with Param.
Parameters:
For details on other options for customizing the component see the layout and styling how-to guides.
active(boolean): Whether to animate the bar when in indeterminate modebar_color(str): The color of the bar, one of 'primary', 'secondary', 'success', 'info', 'warning', 'danger', 'light', 'dark'max(int): The maximum progress valuestyle(dict): A dictionary of CSS to apply to the progress barvalue(int): The current value towards the progress, set to -1 for an indeterminate state
The Progress widget can be instantiated with and without a value. If given a value the progress bar will fill according to the progress to the max value which is 100 by default:
The progress value can be updated from Python:
The Progress can also be instantiated without a value:
The Progress widget also supports a range of bar colors:
Controls
The Progress widget exposes a number of options which can be changed from both Python and Javascript. Try out the effect of these parameters interactively: