diff --git a/tqdm/_tqdm_notebook.py b/tqdm/_tqdm_notebook.py index cd60f937..885a7069 100644 --- a/tqdm/_tqdm_notebook.py +++ b/tqdm/_tqdm_notebook.py @@ -209,8 +209,9 @@ class tqdm_notebook(tqdm): # Replace with IPython progress bar display (with correct total) unit_scale = 1 if self.unit_scale is True else self.unit_scale or 1 + total = self.total * unit_scale if self.total else self.total self.sp = self.status_printer( - self.fp, self.total * unit_scale, self.desc, self.ncols) + self.fp, total, self.desc, self.ncols) self.desc = None # trick to place description before the bar # Print initial bar state diff --git a/tqdm/_version.py b/tqdm/_version.py index 78accbc8..2563a66f 100644 --- a/tqdm/_version.py +++ b/tqdm/_version.py @@ -5,7 +5,7 @@ from io import open as io_open __all__ = ["__version__"] # major, minor, patch, -extra -version_info = 4, 32, 0 +version_info = 4, 32, 1 # Nice string for the version __version__ = '.'.join(map(str, version_info))