Skip to content

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#

[view source]

class tqdm_notebook(std_tqdm)

Experimental IPython/Jupyter Notebook widget using tqdm!

status_printer#

[view source]

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

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

__init__#

[view source]

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#

[view source]

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#

[view source]

def tnrange(*args, **kwargs)

Shortcut for tqdm.notebook.tqdm(range(*args), **kwargs).