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

Updating a multiprocess progress_bar #39

Closed
fonnesbeck opened this issue Oct 24, 2019 · 3 comments
Closed

Updating a multiprocess progress_bar #39

fonnesbeck opened this issue Oct 24, 2019 · 3 comments

Comments

@fonnesbeck
Copy link

I'm trying to replace a tqdm progress bar with a fastprogress bar. However, its not clear how to implement it for multiprocessing. Since gen is a required argument there does not seem to be an obvious way to allow processes to update the bar. Any instructions, or a pointer to an example, would be helpful.

@sgugger
Copy link
Contributor

sgugger commented Oct 24, 2019

You can use the update function a bit like a tqdm progress bar, see this download function for instance.

@fonnesbeck
Copy link
Author

Is it possible to have child progress bars for each parallel process, and have them update independently, or can the child bars only work in serial?

@sgugger
Copy link
Contributor

sgugger commented Oct 28, 2019

No, this is not build for this use case. It just does two nested progress bar, one child and on parent.

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