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

Charm.pool.map() and tqdm: obtain a progressbar ? #178

Closed
lrnv opened this issue Aug 31, 2020 · 1 comment
Closed

Charm.pool.map() and tqdm: obtain a progressbar ? #178

lrnv opened this issue Aug 31, 2020 · 1 comment

Comments

@lrnv
Copy link

lrnv commented Aug 31, 2020

Hi,

I did not manage to obtain a progressbar with tqdm on charm.pool.map().

Is there a way this could work ? I even tried instanciating a bunch of charm.pool.Task, and .get() them one by one in a loop, but it did not work.

I run on a cluster, the code takes days and I'd love to be able to see the progress in real time. Did I miss an option somewhere ?

If there is not, maybe you could give me an overview / an idea on how hard it would be to add this possiblity to the current implementation of charm.pool.map, and if I feel like I can, I'll do.

Edit: Cross-posted of stackoverflow there : https://stackoverflow.com/questions/63671000/charm-pool-map-tqdm-obtain-a-progressbar

@lrnv
Copy link
Author

lrnv commented Sep 7, 2020

Solved in stackoverflow via the use of charm.pool.map_async(multi_futures=True) and charm.iwait().

@lrnv lrnv closed this as completed Sep 7, 2020
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

1 participant