Skip to content
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

Progress bar disappears during long iterations #334

Closed
abw333 opened this issue Jan 7, 2017 · 1 comment
Closed

Progress bar disappears during long iterations #334

abw333 opened this issue Jan 7, 2017 · 1 comment

Comments

@abw333
Copy link

abw333 commented Jan 7, 2017

I am using Python 3.6 and tqdm 4.10.0.

My code looks like:

with multiprocessing.Pool() as pool:
    for input, output in zip(tqdm.tqdm(args_list, smoothing=0),
                             pool.imap(function, args_list)):
        ...                                                                                                                                                 

Iterations are fairly short (~15 iterations/s), with a few exceptions that may last much longer (~60s/iteration). Whenever I hit these longer iterations, the progress bar will disappear until the iteration completes. Is this expected?

EDIT: I don't expect that multiprocessing is causing this issue, but I haven't verified this, so I left it in the code sample above, just in case.

@lrq3000
Copy link
Member

lrq3000 commented Jan 9, 2017

tqdm is not yet parallel safe, please try #329 and please report if this fixes your issue!

Indeed, your issue seems very similar to what is reported in another ticket: #285 (comment)

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

No branches or pull requests

2 participants