fix notebook `reset()` when disabled

This commit is contained in:
Casper da Costa-Luis 2021-02-10 11:54:39 +00:00
parent ee74bfbe30
commit 5846c4ae9a
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 2 additions and 0 deletions

View File

@ -297,6 +297,8 @@ class tqdm_notebook(std_tqdm):
----------
total : int or float, optional. Total to use for the new bar.
"""
if self.disable:
return super(tqdm_notebook, self).reset(total=total)
_, pbar, _ = self.container.children
pbar.bar_style = ''
if total is not None: