The Tqdm indicator wraps the well known tqdm progress indicator and displays the progress towards some target. You can use it in the notebook or in your Panel web app.
Parameters:
layout(Column or Row): The layout of theprogressindicator and thetext_pane.max(int): The maximum progress value.progress(Progress): The Progress indicator to display the progress on.text(int): The current text being output by tqdm.text_pane(Str): The Pane displaying the progresstext.value(int or None): The current value towards the progress.write_to_console(bool): Whether or not to also write to the console, only works on server.
For details on other options for customizing the component see the layout and styling how-to guides. For a general introduction to tqdm and lots of examples checkout the tqdm github page.
To use the Tqdm indicator instantiate the object and then use the resulting variable just like you would use tqdm.tqdm, i.e. you can iterate over any iterable:
Most of the parameters supported by tqdm can be passed to the call method of the Tqdm indicator.
Click the button below to see the progress bar update (if you viewing this on a live kernel):
Nesting
When nesting Tqdm indicators using the margin parameter allows visually indicating the level of nesting.
