Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Multiple lines are printed in IDLE (Ubuntu 14.04, python2.7) #23

Open
ofir-reich opened this issue Jun 30, 2016 · 2 comments
Open

Multiple lines are printed in IDLE (Ubuntu 14.04, python2.7) #23

ofir-reich opened this issue Jun 30, 2016 · 2 comments

Comments

@ofir-reich
Copy link

ofir-reich commented Jun 30, 2016

for i in tqdm.trange(10):
    time.sleep(0.3)

  0%|          | 0/10 [00:00<?, ?it/s]�[A
 10%|█         | 1/10 [00:00<00:02,  3.32it/s]�[A
 20%|██        | 2/10 [00:00<00:02,  3.30it/s]�[A
 30%|███       | 3/10 [00:00<00:02,  3.29it/s]�[A
 40%|████      | 4/10 [00:01<00:01,  3.28it/s]�[A
 50%|█████     | 5/10 [00:01<00:01,  3.27it/s]�[A
 60%|██████    | 6/10 [00:01<00:01,  3.27it/s]�[A
 70%|███████   | 7/10 [00:02<00:00,  3.27it/s]�[A
 80%|████████  | 8/10 [00:02<00:00,  3.26it/s]�[A
 90%|█████████ | 9/10 [00:02<00:00,  3.26it/s]�[A
100%|██████████| 10/10 [00:03<00:00,  3.26it/s]�[A
�[A

Some strange characters are printed instead of the carriage return action. I thought this worked for me before, but maybe I changed something.
This only happens in IDLE. When I try the python in Shell it behaves fine (except that it stays there after the loop is over).
Is there a quick fix I'm not aware of? I've had problems with the carriage return thing when I tried to create a progress bar myself. Ubuntu 14.04 is common enough that I thought this would be solved.

Thanks for the amazing project!

@hadim
Copy link

hadim commented Jul 1, 2016

Please see the maintened fork there https://github.com/tqdm/tqdm

@CrazyPython
Copy link

@ofir-reich this is no longer maintained and has been migrated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants