3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

tqdmのプログレスバーを非表示にしたい

Last updated at Posted at 2021-10-19

なに

tqdmのプログレスバーを非表示にする方法。

方法

disable=Trueにすればよい。

from tqdm import tqdm

hide_progress_bar = True
hoge = list(range(100))

for num in tqdm(hoge, disable=hide_progress_bar):
   num = num ** 100000

Background

nohup使って学習プログラムを回しているとき、うっかりtqdmのプログレスバーを表示させていると、出力ログがえらいことになる。もはや人災。

そこで、こういうシチュエーションではプログレスバーを非表示にしてログをスッキリさせたい。

参考

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?