Skip to content

Commit 5f7c7e4

Browse files
committed
bump version, Merge branch 'notebook-fix'
2 parents af1d7c5 + df7f18f commit 5f7c7e4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tqdm/_tqdm_notebook.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,12 @@ def __init__(self, *args, **kwargs):
174174
if not kwargs.get('bar_format', None):
175175
kwargs['bar_format'] = r'{n}/|/{l_bar}{r_bar}'
176176

177-
super(tqdm_notebook, self).__init__(*args, **kwargs)
177+
# Initialize parent class + avoid printing by using gui=True
178+
super(tqdm_notebook, self).__init__(*args, gui=True, **kwargs)
178179

179180
# Delete first pbar generated from super() (wrong total and text)
180-
self.sp('', close=True)
181+
# DEPRECATED by using gui=True
182+
# self.sp('', close=True)
181183
# Replace with IPython progress bar display (with correct total)
182184
self.sp = self.status_printer(self.fp, self.total, self.desc)
183185
self.desc = None # trick to place description before the bar

tqdm/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
__all__ = ["__version__"]
99

1010
# major, minor, patch, -extra
11-
version_info = 4, 7, 2
11+
version_info = 4, 7, 3
1212

1313
# Nice string for the version
1414
__version__ = '.'.join(map(str, version_info))

0 commit comments

Comments
 (0)