Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Generate new processbar every time when updated and traces won't vanish when leave is true #14

Open
AnnabellChan opened this issue Dec 11, 2014 · 1 comment

Comments

@AnnabellChan
Copy link

2014-12-11--1418282766_685x244_scrot

@ubershmekel
Copy link

I got this too with this code:

>>> import tqdm
>>> import time
>>> for i in tqdm.tqdm(range(int(1e6))):
...     if i % 1000 == 0:
...         time.sleep(0.01)
...
|----------| 49001/1000000   4% [elapsed: 00:00 left: 00:09, 98002.00 iters/sec]
|----------| 99001/1000000   9% [elapsed: 00:01 left: 00:09, 98902.11 iters/sec]
|#---------| 149001/1000000  14% [elapsed: 00:01 left: 00:08, 99267.83 iters/sec
|#---------| 199001/1000000  19% [elapsed: 00:02 left: 00:08, 99450.78 iters/sec
|##--------| 249001/1000000  24% [elapsed: 00:02 left: 00:07, 99560.58 iters/sec
|##--------| 299001/1000000  29% [elapsed: 00:03 left: 00:07, 99633.79 iters/sec
|###-------| 349001/1000000  34% [elapsed: 00:03 left: 00:06, 99686.09 iters/sec
|###-------| 399001/1000000  39% [elapsed: 00:04 left: 00:06, 99725.32 iters/sec
|####------| 449001/1000000  44% [elapsed: 00:04 left: 00:05, 99733.67 iters/sec
|####------| 499001/1000000  49% [elapsed: 00:05 left: 00:05, 99760.29 iters/sec
|#####-----| 549001/1000000  54% [elapsed: 00:05 left: 00:04, 99782.08 iters/sec
|#####-----| 599001/1000000  59% [elapsed: 00:06 left: 00:04, 99783.61 iters/sec
|######----| 649001/1000000  64% [elapsed: 00:06 left: 00:03, 99800.25 iters/sec
|######----| 699001/1000000  69% [elapsed: 00:07 left: 00:03, 99814.51 iters/sec
|#######---| 749001/1000000  74% [elapsed: 00:07 left: 00:02, 99826.87 iters/sec
|#######---| 799001/1000000  79% [elapsed: 00:08 left: 00:02, 99837.69 iters/sec
|########--| 849001/1000000  84% [elapsed: 00:08 left: 00:01, 99835.49 iters/sec
|########--| 899001/1000000  89% [elapsed: 00:09 left: 00:01, 99844.63 iters/sec
|#########-| 949001/1000000  94% [elapsed: 00:09 left: 00:00, 99852.80 iters/sec
|#########-| 999001/1000000  99% [elapsed: 00:10 left: 00:00, 99860.16 iters/sec

>>>

Windows doesn't really let you modify the cmd console width.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants