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

Progress bar print mult colums when desc option contains chinese character #472

Open
Drake-Z opened this issue Oct 25, 2017 · 1 comment
Assignees
Labels
duplicate 🗐 Seen it before p2-bug-warning ⚠ Visual output bad

Comments

@Drake-Z
Copy link

Drake-Z commented Oct 25, 2017

I use tqdm 4.19.4 in Win10 Python3.6.2, I found that if there have chinese character in tqdm desc option, the progress bar will print multiple columns
like this :
image
code:

from tqdm import tqdm
from time import sleep
def test(desc):
    for files in tqdm(range(200), desc=desc):
        sleep(0.001)
test("test")
test("测试")

But if add ncols option will not have this problem.

@casperdcl
Copy link
Sponsor Member

relevant PR: #410

@casperdcl casperdcl self-assigned this Oct 25, 2017
@casperdcl casperdcl added p2-bug-warning ⚠ Visual output bad duplicate 🗐 Seen it before labels Oct 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate 🗐 Seen it before p2-bug-warning ⚠ Visual output bad
Projects
None yet
Development

No branches or pull requests

2 participants