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

"redirecting writing" example doesn't work #420

Closed
DrJimFan opened this issue Aug 11, 2017 · 2 comments
Closed

"redirecting writing" example doesn't work #420

DrJimFan opened this issue Aug 11, 2017 · 2 comments

Comments

@DrJimFan
Copy link

I'm using the latest tqdm with python 3.5 on Mac OS X iTerm2.

I pasted the "redirecting writing" example and ran it verbatim, but it didn't have the correct behavior.

Expected: "Foo blabla" -> 33% -> "Foo blabla" -> "66%" -> "Foo blabla" -> 100%
Actual: "Foo blabla" -> "Foo blabla" -> "Foo blabla" -> 100%

The intermediate 33% and 66% aren't printed at all. The bar only shows once at the very end.

If I don't use the trick and write tqdm.write('Foo blabla') instead, it displays the correct behavior.

Thanks!

@DrJimFan
Copy link
Author

FYI, I can reproduce the problem on Ubuntu 16.04 (python 3.6). It's not a Mac-only issue.

@lrq3000
Copy link
Member

lrq3000 commented Sep 22, 2017

Thank you for the report, can you please try to supply miniter=1, mininterval=0 to tqdm and tell us if you still experience the same issue?

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