You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a mixture of tasks which I want to display, most of which I can update the progress for, and am showing the elapsed time and NofM:
PROGRESS_BAR_COLUMNS = [
TextColumn("[progress.description]{task.description}"),
BarColumn(),
TaskProgressColumn(),
# Removing TimeRemainingColumn() from defaults, replacing with:
TimeElapsedColumn(),
# Add this last as have some out of N and some out of N^2:
MofNCompleteColumn(),
]
This gives me something like this, starting with an empty (grey) bar, then a red partly filled bar, and finally a full green bar:
However, some tasks have a known number of steps (say 10), but I cannot monitor their progress, so what to show the indeterminate animated state AND the elapsed time, and then when finished show the standard green 100% bar:
I can get the indeterminate state using start=False, but then the elapsed time does not show:
I have a mixture of tasks which I want to display, most of which I can update the progress for, and am showing the elapsed time and NofM:
This gives me something like this, starting with an empty (grey) bar, then a red partly filled bar, and finally a full green bar:
That is all good so far.
However, some tasks have a known number of steps (say 10), but I cannot monitor their progress, so what to show the indeterminate animated state AND the elapsed time, and then when finished show the standard green 100% bar:
I can get the indeterminate state using
start=False
, but then the elapsed time does not show:In ASCII art:
I can get the indeterminate state using
total=None
, but I do have a value, and would like the % place holder.In ASCII art
total=None
gave:I'd like something like that visually but with the time, and perhaps ?/total at the end:
Is this currently not possible? Thank you!
Tested with rich 13.9.4 on Python 3.12 on macOS.
The text was updated successfully, but these errors were encountered: