Skip to content

Does tqdm print properly with --log-output?Β #765

Description

@hujc7

πŸ› Bug

Not sure if it's a bug or it's expected. When I use tqdm in notebook and use the --log-output option, the progress bar keeps printing to a new line. Anyone having the same problem?

Notebook cell

from time import sleep
from tqdm import tqdm
 
for i in tqdm(range(int(5)), leave=True):
    sleep(0.1)

CMD

papermill papermill-test.ipynb papermill-test-out.ipynb --log-output

Output

Input Notebook:  papermill-test.ipynb
Output Notebook: papermill-test-out.ipynb
Executing notebook with kernel: python3
Executing Cell 1---------------------------------------
  0%|                    | 0/5 [00:00<?, ?it/s]
 20%|β–ˆβ–ˆβ–         | 1/5 [00:00<00:00,  9.99it/s]
 40%|β–ˆβ–ˆβ–ˆβ–ˆβ–Š       | 2/5 [00:00<00:00,  9.88it/s]
 60%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–    | 3/5 [00:00<00:00,  9.85it/s]
 80%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ  | 4/5 [00:00<00:00,  9.83it/s]
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00,  9.83it/s]
100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00,  9.82it/s]


Ending Cell 1------------------------------------------

tqdm: 4.65.2
papermill: 2.5.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions