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

tqdm.print #2

Open
Nepta opened this issue May 25, 2021 · 0 comments
Open

tqdm.print #2

Nepta opened this issue May 25, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Nepta
Copy link
Owner

Nepta commented May 25, 2021

printing while a progress bar is broken since it use a "\r" / reprint

maybe we should have a tqdm.print that add some text to the side of the bar when a progress bar is displayed ?

something like that:

local sum = 0
for i in tqdm.range(1,1000)
   sum = sum + stuff(i)
   tqdm.print("cumulative sum : "..sum)
end

would display the progress with additional user info:
[####### ] [500/1000 | 150Hz | 30s : 50s] { cumulative sum : 4242 }

@Nepta Nepta added the enhancement New feature or request label May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant