-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Using progress bar with multiprocessing #139
Comments
Related: #20 |
What I am trying to do seems to be simpler. I do not want multiple bars because I can't even get one to work. Would be cool though. |
Oh, I thought that was what you were trying to do, sorry. (I saw multiple bars in your output of 25 bars and didn't see that you didn't mean for it to have 25 bars...) |
Well, your current problem is that you keep mkaing new bars in the function every time it's called, rather than using an existing one. Try making a bar and passing it to the multiprocessed function as a parameter? |
Changed it to this, still I get e.g.
|
Yes @Tim1808, as @TheTechRobo has said, you are calling To make it work, you should delete |
Not even an answer? |
Sorry, not meant to be rude. Closed it because your solution fixed it for me. Thank you very much for your efforts. |
Ah, that's great! No harm done. 👍 |
This is not a bug report, I just can't figure out how to do what I want.
Basically I have a
multiprocessing_func
which is the target which I put in the processes, where I iterate overi
(which are different board sizes for chess).I would like the have an
alive_bar
which has the length of theBOARD_SIZES
range as its argument, and each time a process is finished I want to callbar()
to increase the bar. Clearly, the way I coded it right now, I get 25 bars which only get 1 fill out of the possible 25, like so:How should I do this for my use case?
The text was updated successfully, but these errors were encountered: