ncols parameter bug/inconsistency in tqdm.auto #817
Labels
p4-enhancement-future 🧨
On the back burner
question/docs ‽
Documentation clarification candidate
submodule ⊂
Periphery/subclasses
Hi!
First I want to say this is a really really cool progress tool! I want to use tqdm to create a nicer looking progress bar for training models using keras and to make it compatible for most notebook and console I am importing tqdm using:
as per documentation. I found out that my progress bar is only using around half of the width in the output cell so I initialize my tqdm as
This works great in notebook but when I tried to run it in console it breaks as
ncols
in console version is expecting anint
instead ofstr
. I was able to resolve the problem simply by settingdynamic_ncols
toTrue
instead of specifyingncols
.Although my use-case is resolved (using 100% of width in notebook while having the same in console). The issue of
ncols
inconsistency still persists as in the notebook version of tqdm we also take in a string while standard tqdm doesn't. I just want to point this out here just in case someone also bump into the same issue. Let me know if you feel like this should be address (i.e. define behavior for passing in a string to ncols in standard tqdm) I am happy to help out!Thank you so much for your time!
Environment:
python: 3.6.2
tqdm: 4.36.1
The text was updated successfully, but these errors were encountered: