scvi.utils.track(sequence, description='Working...', disable=False, style=None, **kwargs)[source]#

Progress bar with ‘rich’ and ‘tqdm’ styles.

sequence : Iterable

Iterable sequence.

description : str (default: 'Working...')

First text shown to left of progress bar.

disable : bool (default: False)

Switch to turn off progress bar.

style : {‘rich’, ‘tqdm’} | NoneOptional[Literal[‘rich’, ‘tqdm’]] (default: None)

One of [“rich”, “tqdm”]. “rich” is interactive and is not persistent after close.


Keyword args to tqdm or rich.


>>> from scvi.utils import track
>>> my_list = [1, 2, 3]
>>> for i in track(my_list): print(i)