Replies: 5 comments
-
All of these solutions I'm not a fan of because they require another PYPI package with little added value: https://builtin.com/software-engineering-perspectives/python-progress-bar Though manually implementing a progress counter shouldn't be too hard.... (famous last words). I think this will need some benchmarking from #96, because it seems like most of the slow down is actually in the |
Beta Was this translation helpful? Give feedback.
-
In GitLab by @tjlaboss on Mar 14, 2023, 16:26 Quick-and-dirty progress bar import time
def bar():
for i in range(10 + 1):
string = '[' + '='*i + '.'*(10-i) + ']'
if i > 0:
print('\b'*len(string), end='')
print(string, end="", flush=True)
time.sleep(.1)
print() |
Beta Was this translation helpful? Give feedback.
-
In GitLab by @tjlaboss on Mar 14, 2023, 16:32 The progress bar default could be different if between a script and a live interpreter. An argument like |
Beta Was this translation helpful? Give feedback.
-
Thoughts on how to implement this:
|
Beta Was this translation helpful? Give feedback.
-
@MicahGale See rich's progress bar - it's prettier and likely easy to implement |
Beta Was this translation helpful? Give feedback.
-
Many whole core models take over 40 seconds to read in. Would a progress bar help with tolerating this pause?
No matter what the bar needs to be suppressible. The question is should it default off or on?
Beta Was this translation helpful? Give feedback.
All reactions