tqdm.notebook#

[view source]

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#

[view source]

class tqdm_notebook(std_tqdm)

Experimental IPython/Jupyter Notebook widget using tqdm!

status_printer#

[view source]

 | @staticmethod
 | status_printer(_, total=None, desc=None, ncols=None)

Manage the printing of an IPython/Jupyter Notebook progress bar widget.

__init__#

[view source]

 | __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#

[view source]

 | 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#

[view source]

tnrange(*args, **kwargs)

A shortcut for tqdm.notebook.tqdm(xrange(*args), **kwargs). On Python3+, range is used instead of xrange.