-
-
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
use alive_progress with gevent, terminal only show one bar when running.but it's show all when all bar is end #95
Comments
Hey @OnionTop, thanks for your issue. Unfortunately, this is not supported just yet.
Anyway, to get this to work, I'd have to try to disable this multiple system hook installing. Either automatically detecting it, or via a user parameter. import time
from multiprocessing import Pool
from alive_progress import alive_bar
def bar(num):
with alive_bar(total=num, bar='blocks') as bar:
for i in range(num):
time.sleep(0.5)
bar()
if __name__ == '__main__':
a=[7,8,6]
with Pool(3) as pool:
pool.map(bar,a) Not cool. Notice how they all compete for the line (you may want to send So, to get this to really work, it would need some kind of coordination between the multiple concurrent |
Thanks for your answer,i will try your code. my python version also is 3.9 |
output result
The text was updated successfully, but these errors were encountered: