Skip to content

Progressbar for both IPython Notebooks (HTML, CSS, JS) and plain terminals.

Notifications You must be signed in to change notification settings

yoavram/ipy-progressbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This repo was imported from Alexander Plavin's repo, which, according to PyPI is under the MIT License.

I will not maintain this repo or fix bugs and issues, but pull requests are, of course, welcome.

Introduction

ipy-progressbar allows to use the same code for rich progressbars in IPython Notebooks, and for simple fallback ones in terminal sessions.

Install

pip install git+https://github.com/yoavram/ipy-progressbar.git

Example

Code like this:

from ipy_progressbar import ProgressBar

pb = ProgressBar(10, title='Outer', key='outer')
for i in pb:
    pb_inner = ProgressBar(5, title='Inner', key='inner')
    for j in pb_inner:
        # inner loop body

will work both in IPython Notebook and in plain console. When run in notebook, the output will be rich (Bootstrap progress bars), while console version is mainly thought of as a fallback.

About

Progressbar for both IPython Notebooks (HTML, CSS, JS) and plain terminals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published