/progressbar

Python progress bar project with support for HTML5 in the IPython Notebook.

Primary LanguagePython

progressbar

Python progress bar project with support for HTML5 in the IPython Notebook.

Demo

Two progress bar implementations are provided, one using ASCII and one using HTML/CSS/Javascript. Perhaps at some point these can be amalagamated into a single object that displays HTML in notebook and ASCII in a terminal/qt console.

The Rich one is implemented by inserting an HTML5 progress element into the notebook and manipulated with Javascript.

A class that wraps an iterable/iterator, ProgIter is provided for use in monitoring for loop progress.

I included some css adapted from this excellent post to make the html bar look nice, this should be appened to your ~/.ipython/profile-[profile]/static/custom/custom.css (replacing [profile] with your profile name, usually default unless you have a custom profile)