tqdm.notebook#
IPython/Jupyter Notebook progressbar decorator for iterators. Includes a default range
iterator printing to stderr
.
Usage:
>>> from tqdm.notebook import trange, tqdm
>>> for i in trange(10):
... ...
tqdm_notebook Objects#
class tqdm_notebook(std_tqdm)
Experimental IPython/Jupyter Notebook widget using tqdm!
status_printer#
@staticmethod
def status_printer(_, total=None, desc=None, ncols=None)
Manage the printing of an IPython/Jupyter Notebook progress bar widget.
__init__#
def __init__(*args, **kwargs)
Supports the usual tqdm.tqdm
parameters as well as those listed below.
Parameters
- display: Whether to call
display(self.container)
immediately
[default: True].
reset#
def reset(total=None)
Resets to 0 iterations for repeated use.
Consider combining with leave=True
.
Parameters
- total: int or float, optional. Total to use for the new bar.
tnrange#
def tnrange(*args, **kwargs)
Shortcut for tqdm.notebook.tqdm(range(*args), **kwargs)
.