question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

use tqdm for progressbar

See original GitHub issue

I have created a subclass of joblib.Parallel that uses the ‘tqdm’ package for the progress bar. I find this method more comfortable - the updates are rapid, but uses \r to avoid cluttering the screen. The code I used also finds the number of tasks at the start (if it’s an iterable with len) and uses it.

I want to contribute this code somehow - should I open a PR, or do it in any other way?

Thanks!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
tsvikascommented, Dec 15, 2019

render1576430473023 (sorry for the 80 characters width)

this is the same example from your docs.

  • first case: a regular iterator. the code does not try to consume it, and only find its length after all work has been dispatched.
  • second case: user can add a total_tasks=10 parameter, which allows a progressbar to show from the start.
  • third case: if the iterator is already a list, the user doesn’t need to input total_tasks, since the code just uses the list length.
3reactions
GaelVaroquauxcommented, Dec 11, 2019

Thank you for your proposal.

I believe that we want to keep joblib without additional dependencies. Unfortunately, this implies that we cannot add a dependency on tqdm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python | How to make a terminal progress bar using tqdm
Using tqdm is very simple, you just need to add your code between tqdm() after importing the library in your code. You need...
Read more >
tqdm/tqdm: A Fast, Extensible Progress Bar for Python and CLI
tqdm derives from the Arabic word taqaddum (تقدّم) which can mean "progress," and is an abbreviation for "I love you so much" in...
Read more >
How to Use Progress Bars in Python? | tqdm and tqdm Notebook
tqdm is a library in Python which is used for creating Progress Meters or Progress Bars. tqdm got its name from the Arabic...
Read more >
How to create a Python terminal progress bar using tqdm?
tqdm is a Python library that provides functions that wrap around the specified iterable to give a smart progress bar as an output....
Read more >
Track your loop using tqdm: 7 ways progress bars in Python ...
tqdm is a Python library used for creating smart progress meters or progress bars. Word tqdm has two interesting origins: In Arabic: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found