Skip to content

Commit

Permalink
Make tqdm work nicely in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
hyanwong committed Feb 22, 2024
1 parent e99a3dc commit 91c1575
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 91c1575

Please sign in to comment.