tqdm / tqdm

:zap: A Fast, Extensible Progress Bar for Python and CLI

Home Page:https://tqdm.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nitrocode opened this issue · comments

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%|█████████████████████▋

does it support /r (linefeed)?

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.

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.

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
.

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

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...