Skip to content

pycharm + windows new line for every update #307

@chanansh

Description

@chanansh

I try the demo code:

from tqdm import trange
from time import sleep

for i in trange(10, desc='1st loop'):
    for j in trange(5, desc='2nd loop', leave=False):
        for k in trange(100, desc='3nd loop'):
            sleep(0.01)

and I get a new line per update rather than a carrier-return (see below sample)
What could be the reason?

1st loop:   0%|          | 0/10 [00:00<?, ?it/s]

2nd loop:   0%|          | 0/5 [00:00<?, ?it/s]


3nd loop:   0%|          | 0/100 [00:00<?, ?it/s]


3nd loop:  10%|█         | 10/100 [00:00<00:00, 92.96it/s]


3nd loop:  20%|██        | 20/100 [00:00<00:00, 93.60it/s]


3nd loop:  30%|███       | 30/100 [00:00<00:00, 94.18it/s]


3nd loop:  40%|████      | 40/100 [00:00<00:00, 94.64it/s]


Metadata

Metadata

Assignees

Labels

duplicate 🗐Seen it beforeinvalid ⛔Not-an-issue or upstream (not-our-issue)question/docs ‽Documentation clarification candidateto-review 🔍Awaiting final confirmation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions