Skip to content

Commit

Permalink
fix notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Sep 27, 2020
1 parent 64fc4f7 commit 315824b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tqdm/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@ def display(self, msg=None, pos=None,

@property
def colour(self):
return self.container.children[-2].style.bar_color
if hasattr(self, 'container'):
return self.container.children[-2].style.bar_color

@colour.setter
def colour(self, bar_color):
self.container.children[-2].style.bar_color = bar_color
if hasattr(self, 'container'):
self.container.children[-2].style.bar_color = bar_color

def __init__(self, *args, **kwargs):
kwargs = kwargs.copy()
Expand Down

0 comments on commit 315824b

Please sign in to comment.