Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
hack to stop tqdm hanging (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeNeutoy committed May 1, 2018
1 parent a6d4b1b commit af283d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions allennlp/common/tqdm.py
Expand Up @@ -4,6 +4,13 @@
"""

from tqdm import tqdm as _tqdm
# This is neccesary to stop tqdm from hanging
# when exceptions are raised inside iterators.
# It should have been fixed in 4.2.1, but it still
# occurs.
# TODO(Mark): Remove this once tqdm cleans up after itself properly.
# https://github.com/tqdm/tqdm/issues/469
_tqdm.monitor_interval = 0

class Tqdm:
# These defaults are the same as the argument defaults in tqdm.
Expand Down

0 comments on commit af283d1

Please sign in to comment.