A Progress Widget Extension Added
The purpose of the ProgressExt widget is to make the existing
pn.widgets.Progress easier to use.
The ProgressExt does this by providing
- A combination of a progress value and a progress message
- Easy to use functions for
- Context Management
To enable easy progress reporting from functions and parts of code.
An example use case is
progress = ProgressExt()
run_button = pn.widgets.Button(name="Click me")
@progress.increment(50, "incrementing ...")
app = pn.Column(run_button, progress.view)
which will show the progress and reset every 2 clicks.
The ProgressExt demo can be found in the gallery at awesome-panel.org.
The ProgressExt is available in the awesome_panel python package
@philippjfr. I think this functionality is something that would help the users of Panel as for now it’s not that obvious how to use the Progress widget effectively. And I think its important to sprinkle in some progressbars and spinners in an application to make it feel modern and fast.
Feel free to
- Take the idea,
- Take the code or
- Tell me you would like a pull request from me and guide me.
- I would need some help on how to code a Panel widget and some discussion on the right api and naming conventions.
The implemention is here.
The tests are here and here.