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

fix wrong bar scaling when in notebook and using unit_scale #1528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szymonlopaciuk
Copy link

When using tqdm.notebook.tqdm with the unit_scale option, the progress bar is not drawn properly, as total is multiplied by unit_scale twice. This PR aims to fix the problem.

Minimum example of the issue:

from tqdm.notebook import tqdm
from time import sleep

for _ in tqdm(range(0, 100, 10), unit_scale=10):
    sleep(0.1)

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

Successfully merging this pull request may close these issues.

None yet

1 participant