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

Proposal: option for making tqdm quiet until some time has passed #1069

Closed
Witiko opened this issue Nov 6, 2020 · 1 comment · Fixed by #836 or #1130
Closed

Proposal: option for making tqdm quiet until some time has passed #1069

Witiko opened this issue Nov 6, 2020 · 1 comment · Fixed by #836 or #1130
Assignees
Labels
p3-enhancement 🔥 Much new such feature question/docs ‽ Documentation clarification candidate to-merge ↰ Imminent
Projects
Milestone

Comments

@Witiko
Copy link

Witiko commented Nov 6, 2020

Long-running operations waste time. Therefore, it's a common pattern to cache their results, so that they finish instantly the next time we run them. In the first case, tqdm is useful, since it tells us how many episodes of a Netflix series we will be able to binge-watch before the operation has run its course. In the second case, tqdm only clutters the terminal. Therefore, it would be useful to have a parameter that makes tqdm wait a bit before it displays the progress bar. This way, the progress bar would only be shown for long-running operations. The leave=False parameter is a step in the right direction, but it goes too far and erases useful information about the total time of long operations.

@Witiko Witiko changed the title Proposal: option for making tqdm quiet before some time has passed Proposal: option for making tqdm quiet until some time has passed Nov 6, 2020
@casperdcl
Copy link
Sponsor Member

solution proposed in #836 but would be great if you could give feedback there about interface (use disable or a new kwarg such as delay/waituntil): #836 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-enhancement 🔥 Much new such feature question/docs ‽ Documentation clarification candidate to-merge ↰ Imminent
Projects
Casper
  
Done
2 participants