ipypb

raw JSON →
0.5.2 verified Mon Apr 27 auth: no python maintenance

Interactive ProgressBar natively built with IPython (0.5.2). Displays progress bars in Jupyter notebooks with support for nested loops and custom messages. Low release cadence; last stable release in 2018.

pip install ipypb
error ModuleNotFoundError: No module named 'ipypb'
cause The library is not installed.
fix
Run pip install ipypb in a terminal or notebook cell with !.
error TraitError: The 'layout' trait of a VBox instance must be a Layout instance, but a value of dict was specified.
cause Incompatibility with newer ipywidgets versions (8+).
fix
Downgrade ipywidgets to 7.x: pip install ipywidgets==7.7.5
gotcha ipypb.track() must be called inside a Jupyter notebook; it will not display progress in a plain terminal or script.
fix Use tqdm for terminal progress bars.
deprecated This library is no longer actively maintained. Consider using tqdm with notebook support (tqdm.notebook) for similar functionality.
fix Switch to tqdm: from tqdm.notebook import trange
gotcha Nested progress bars may cause display glitches in older IPython versions ( < 7 ).
fix Upgrade IPython to 7+ or flatten loops.

Basic usage in a Jupyter notebook cell.

import ipypb
import time

for i in ipypb.track(range(100)):
    time.sleep(0.01)