Skip to content

Commit

Permalink
Update notebook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danking committed Jan 15, 2020
1 parent cc53d86 commit 3d2d3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tqdm/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __init__(self, *args, **kwargs):
kwargs.setdefault('bar_format', '{l_bar}{bar}{r_bar}')
kwargs['bar_format'] = kwargs['bar_format'].replace('{bar}', '<bar/>')
super(tqdm_notebook, self).__init__(*args, **kwargs)
if self.disable or not kwargs['gui']:
if self.disable is not False or not kwargs['gui']:
return

# Get bar width
Expand All @@ -207,7 +207,7 @@ def __init__(self, *args, **kwargs):
self.sp = self.display

# Print initial bar state
if not self.disable:
if self.disable is not False:
self.display()

def __iter__(self, *args, **kwargs):
Expand Down

0 comments on commit 3d2d3c0

Please sign in to comment.