Skip to content

progress

Progressbar for pathpy.

tqdm_console

Progressbar for a console environment.

Source code in src/pathpyG/utils/progress.py
def tqdm_console(*args, **kwargs):
    """Progressbar for a console environment."""
    if len(args[0]) > config['progress']['min_iter']:
        return tq(*args, **kwargs)
    else:
        return args[0]

tqdm_disabled

Disable the progress bar and return initial iterator.

Source code in src/pathpyG/utils/progress.py
def tqdm_disabled(it, *args, **kwargs):
    """Disable the progress bar and return initial iterator."""
    return it

tqdm_notebook

Progressbar for a notebook environment.

Source code in src/pathpyG/utils/progress.py
def tqdm_notebook(*args, **kwargs):
    """Progressbar for a notebook environment."""
    if len(args[0]) > config['progress']['min_iter']:
        return tqn(*args, **kwargs)
    else:
        return args[0]