[SciPy-dev] adding a nice progressbar to scipy

Ondrej Certik ondrej at certik.cz
Thu Jan 10 12:06:50 EST 2008


On Jan 10, 2008 5:24 PM, Travis E. Oliphant <oliphant at enthought.com> wrote:
> Ondrej Certik wrote:
> > Hi,
> >
> > in almost all of my computational projects, I use this nice progressbar:
> >
> > http://pypi.python.org/pypi/progressbar/
> >
> > it's very easy to use:
> >
> >     widgets=["calculating", " ", progressbar.Percentage(), ' ',
> >             progressbar.Bar(), ' ', progressbar.ETA()]
> >     pbar=progressbar.ProgressBar(widgets=widgets,maxval=10000).start()
> >     for i in range(10000):
> >         pbar.update(i)
> >         #do some heavy calculation in each step
> >     pbar.finish()
> >
> >
> > and it shows the progress, estimated time of arrival (ETA), it's
> > completely configurable with
> > many options, etc. I just asked the author
> > and he made the code dual licensed under BSD and LGPL (the original license).
> >
> > Especially the ETA is very handy, because I get a clue how long I need
> > to wait for my code
> > to finish and I get it for free (see the above example).
> >
> I tend to think that something like this might be more useful for
> IPython, or some other interactive environment.   But, I'm open to
> opinions.

Yes, or ipython. All I want is that it is part of some standard
package, so that it's installed by default.

Ondrej



More information about the SciPy-Dev mailing list