Skip to content

.write() _still_ clashes with nested progress bars on Python3 #467

@duckythescientist

Description

@duckythescientist

See #398 for the original issue. This was closed with #464, but that didn't actually fix the issue. Pull request #399 fixes the issue for me.

Failing test:

from time import sleep
from tqdm import tqdm

def two_bars_with_surrounding_write():
    tqdm.write("starting")
    sleep(1)

    a = tqdm(total=10)
    b = tqdm(total=100)
    sleep(1)

    a.update()
    b.update()

    tqdm.write("finished")
    sleep(1)
    tqdm.write("finished again")
    sleep(1)

two_bars_with_surrounding_write()
"""starting text shows but neither finished text shows"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions