Replies: 3 comments
-
Ooh, we've had the same idea! TQDM is great, of course, but it has the nasty habit of interacting poorly with log lines or other messages sent to STDOUT. I found another, similar library called Enlighten (https://python-enlighten.readthedocs.io/en/stable/) that's really quite amazing. It handles the terminal output the way one would like it to be done - the progress bar at the bottom, and all the log messages above it with no interaction between the two. Here's my proposed PR: #5692. Eager for feedback. I'm not sure how to go about testing the change other than to verify that all the affected code paths are covered by other tests. In development, I definitely noticed that it's easy to accidentally override another variable's name (e.g. |
Beta Was this translation helpful? Give feedback.
-
I just filed a bug to track this - #5711. My PR is almost complete, I just need to figure out how to integrate it into the import workflow. |
Beta Was this translation helpful? Give feedback.
-
@sampsyo do you have any suggestions on how to best integrate a progress bar into the import operation? I'm imagining that I could initialize the progress bar in What do you think? We could also include sub-progress bars showing the progress of looking up candidates, as that would show that the system is making progress in the background. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While updating my library, I found it annoying to have no clue what the status is.
I've asked ChatGPT to edit commands.py and add a progress bar, and as I'm not actively developing, I'm posting it as an idea with code example to adapt from.
Needs tqdm,
pip install tqdm
Beta Was this translation helpful? Give feedback.
All reactions