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 committed Mar 17, 2021
1 parent 1c709df commit c8fccbb
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 c8fccbb

Please sign in to comment.