Skip to content

gracefully handle \r carriage returns to support progress bars #424

@d4l3k

Description

@d4l3k

🐛 Bug

We currently strip new lines from each line and always append a new line to each write. This isn't strictly correct

Module (check all that applies):

  • torchx.spec
  • torchx.component
  • torchx.apps
  • torchx.runtime
  • torchx.cli
  • torchx.schedulers
  • torchx.pipelines
  • torchx.aws
  • torchx.examples
  • other

To Reproduce

from tqdm import tqdm
import time

for i in tqdm(range(100)):
    time.sleep(0.03)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions