Skip to content

Commit

Permalink
notebook update checks if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hansen authored and casperdcl committed Apr 5, 2021
1 parent a22aebc commit a638d6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tqdm/notebook.py
Expand Up @@ -258,6 +258,8 @@ def __iter__(self):
# since this could be a shared bar which the user will `reset()`

def update(self, n=1):
if self.disable:
return
if not self.displayed and self.delay > 0:
display(self.container)
self.displayed = True
Expand Down

0 comments on commit a638d6a

Please sign in to comment.