Skip to content

"redirecting writing" example doesn't work #420

@DrJimFan

Description

@DrJimFan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions