Skip to content

Commit

Permalink
Merge pull request #906 from hyanwong/tqdm-notebook
Browse files Browse the repository at this point in the history
Make tqdm work nicely in notebooks
  • Loading branch information
benjeffery authored Mar 11, 2024
2 parents d9e58cc + 4ffb27d commit 04e9766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsinfer/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""
A progress monitor class for tsinfer
"""
import tqdm
from tqdm.auto import tqdm


class ProgressMonitor:
Expand Down Expand Up @@ -83,7 +83,7 @@ def get(self, key, total):
"{desc}{percentage:3.0f}%|{bar}"
"| {n_fmt}/{total_fmt} [{elapsed}, {rate_fmt}{postfix}]"
)
self.current_instance = tqdm.tqdm(
self.current_instance = tqdm(
desc=desc,
total=total,
disable=not self.enabled,
Expand Down

0 comments on commit 04e9766

Please sign in to comment.