Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output progress does not clear upon change in Cygwin / ConEmu on Windows 7 #254

Closed
nitrocode opened this issue Aug 28, 2016 · 6 comments
Closed
Labels
duplicate 🗐 Seen it before invalid ⛔ Not-an-issue or upstream (not-our-issue)

Comments

@nitrocode
Copy link

Used a virtualenv and pip to install tqdm.

Code

from time import sleep
from tqdm import tqdm

for i in tqdm(range(1000)):
    sleep(0.01)

Output

  0%|                                                                                                                            | 0/1000 [00:00<?, ?it/s]
  1%|█▏                                                                                                                 | 10/1000 [00:00<00:09, 99.99it/s]
  2%|██▎                                                                                                                | 20/1000 [00:00<00:09, 99.99it/s]
  3%|███▍                                                                                                               | 30/1000 [00:00<00:09, 99.99it/s]
  4%|████▌                                                                                                              | 40/1000 [00:00<00:09, 99.99it/s]
  5%|█████▊                                                                                                             | 50/1000 [00:00<00:09, 99.99it/s]
  6%|██████▉                                                                                                            | 60/1000 [00:00<00:09, 99.99it/s]
  7%|████████                                                                                                           | 70/1000 [00:00<00:09, 99.99it/s]
  8%|█████████▏                                                                                                         | 80/1000 [00:00<00:09, 99.99it/s]
  9%|██████████▎                                                                                                        | 90/1000 [00:00<00:09, 99.99it/s] 10%|███████████▍                                                                                                      | 100/1000 [00:01<00:09, 99.99it/s] 11%|████████████▌                                                                                                     | 110/1000 [00:01<00:08, 99.99it/s] 12%|█████████████▋                                                                                                    | 120/1000 [00:01<00:08, 99.99it/s] 13%|██████████████▊                                                                                                   | 130/1000 [00:01<00:08, 99.99it/s] 14%|███████████████▉                                                                                                  | 140/1000 [00:01<00:08, 99.99it/s] 15%|█████████████████                                                                                                 | 150/1000 [00:01<00:08, 99.99it/s] 16%|██████████████████▏                                                                                               | 160/1000 [00:01<00:08, 99.99it/s] 17%|███████████████████▍                                                                                              | 170/1000 [00:01<00:08, 99.99it/s] 18%|████████████████████▌                                                                                             | 180/1000 [00:01<00:08, 99.99it/s] 19%|█████████████████████▋
@CrazyPython
Copy link
Contributor

does it support /r (linefeed)?

@nitrocode nitrocode changed the title Output progress does not clear upon change in Cygwin on Windows 7 Output progress does not clear upon change in Cygwin / ConEmu on Windows 7 Aug 28, 2016
@nitrocode
Copy link
Author

nitrocode commented Aug 28, 2016

Hi @CrazyPython. I believe you're correct because I just saw issue #191.

I tried a couple tests in Windows using cmd to run the above code in Windows native python 2.7 and then using Cygwin's python 2.7 again in cmd. It worked as expected so Cygwin doesn't seem to be the issue. See reference 5.3.

In ConEmu, I checked Cygwin's bash and zsh shells and both outputted the same multiple progress lines above so the issue is within ConEmu. Searching for ConEmu carriage return support did not turn up any useful results.

@noe
Copy link

noe commented Oct 25, 2016

This happens to me in the Pycharm Python Console. My environment is Ubuntu 16.04, Python 2.7.11 and Pycharm Community 2016.2.3.

@lrq3000
Copy link
Member

lrq3000 commented Oct 25, 2016

Pycharm is different, it does not support the return nor "up" characters,
like IDLE. There's no other way around until Pycharm supports both of these
characters.

2016-10-25 10:59 GMT+02:00 Noé Casas notifications@github.com:

This happens to me in the Pycharm Python Console. My environment is Ubuntu
16.04, Python 2.7.11 and Pycharm Community 2016.2.3.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#254 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABES3o3DEu1lRFx4w014JKP81j2ftCkiks5q3cUNgaJpZM4JvDEQ
.

@casperdcl
Copy link
Sponsor Member

I'll close this since there doesn't seem to be anything we can do about it.

@lrq3000
Copy link
Member

lrq3000 commented Oct 30, 2016

Yes @casperdcl, but we should probably add a list of unsupported terminals in the readme (even if you already put the requirements, it seems people still get confused...).

Or maybe we could devise a test at first tqdm instanciation? But I'm not sure how we could reliably capture the displayed output, and not just everything tqdm would output...

This was referenced Nov 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate 🗐 Seen it before invalid ⛔ Not-an-issue or upstream (not-our-issue)
Projects
None yet
Development

No branches or pull requests

5 participants