How to disaply in-place only my string (without progress bar, etc.)? #1317
Unanswered
AIGeneratedUsername
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can make use of the import time
import random
from tqdm import tqdm
desc = tqdm(range(10), bar_format="{desc}")
for i in desc:
x = random.random()
if x > 0.75:
desc.set_description(f"High: {x} > 0.75")
else:
desc.set_description(f"Low: {x} <= 0.75")
time.sleep(1) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I do NOT need:
I need:
Beta Was this translation helpful? Give feedback.
All reactions