bstriner / keras-tqdm

Keras integration with TQDM progress bars
MIT License
348 stars 41 forks source link

tqdm in text mode does not refresh lines #2

Open stared opened 7 years ago

stared commented 7 years ago

screenshot from 2017-01-10 16-23-04

It might be an issue with tqdm itself, but right now text bar is hardly usable. In this case, shouldn't TQDMNotebookCallback be considered the default option?

The same problem appears in your examples: https://github.com/bstriner/keras-tqdm/blob/master/examples/keras_progress_bars.ipynb

bstriner commented 7 years ago

Text mode looks weird in IPython but it's really meant to be run on the command line.

Uploaded an example to the README of what TQDMCallback does on the command line.

CLI

Cheers, Ben

stared commented 7 years ago

Well, I used to use this text bar in Jupyter Notebook (it was Notebook-aware), but not it does not work properly (even with plain tqdm). Unfortunately, in the next I am busy, so I won't dive into extensive testing (e.g. it might depend on Python version).

(In any case - thx! I Googled keras tqdm and found your projects. I wanted to do it some day, but there is so much going on. I was searching as the next week I start doing a workshop for gifted high-school students, see bottom of http://p.migdal.pl. I will surely use your lib. :))

segnaro commented 5 years ago

Try use this: callbacks=[TQDMCallback(show_inner=False)] In Jupyter notebook or Jupyter Lab.

It will fix the refreshing issue :)