Skip to content

Commit

Permalink
Merge 630d8ff into cc53d86
Browse files Browse the repository at this point in the history
  • Loading branch information
danking committed Jan 22, 2020
2 parents cc53d86 + 630d8ff commit ae76eed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tqdm/notebook.py
Expand Up @@ -192,6 +192,8 @@ def __init__(self, *args, **kwargs):
kwargs['gui'] = True
kwargs.setdefault('bar_format', '{l_bar}{bar}{r_bar}')
kwargs['bar_format'] = kwargs['bar_format'].replace('{bar}', '<bar/>')
display = kwargs.get('display')
kwargs['display'] = display if display is not None else False
super(tqdm_notebook, self).__init__(*args, **kwargs)
if self.disable or not kwargs['gui']:
return
Expand All @@ -207,7 +209,7 @@ def __init__(self, *args, **kwargs):
self.sp = self.display

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

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

0 comments on commit ae76eed

Please sign in to comment.