New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rich based progress part doesn't 'complete' cleanly #1266
Comments
python3 -c "from tqdm.rich import tqdm;from rich.progress import track;a=[n for n in track(range(10000000))];b=[n for n in tqdm(range(10000000))];print(len(a), len(b))" to confirm data sizes: $ python3 -c "from tqdm.rich import tqdm;from rich.progress import track;a=[n for n in track(range(10000000))];b=[n for n in tqdm(range(10000000))];print(len(a), len(b))" |
I think this is a duplicate of the same problem: |
@GordonMcGregor what are your |
#1395 merged, this can be closed |
read the known issues
environment, where applicable:
$ python
import tqdm, sys
print(tqdm.version, sys.version, sys.platform)
Python 3.7.6 (default, Jan 8 2020, 13:42:34)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
When I run a simple test case, comparing rich.progress to tqdm.rich, tqdm rich doesn't print the 'final' result, stopping maybe one update short in most cases. You'll see the rich.progress bar reach and display 100%, but the TQDM case always stops at some iteration before 100% in the display (data is correct)
testcase is:
$ python3 -c "from tqdm.rich import tqdm;from rich.progress import track;a=[n for n in track(range(10000000))];b=[n for n in tqdm(range(10000000))];"
$ python3 -c "from tqdm.rich import tqdm;from rich.progress import track;a=[n for n in track(range(10000000))];b=[n for n in tqdm(range(10000000))];"
Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
-c:1: TqdmExperimentalWarning: rich is experimental/alpha
95% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━ 9,474,605/10,000,000 [ 0:00:01 < 0:00:01 , 5,662,501 it/s ]
(base)
The text was updated successfully, but these errors were encountered: