atpbar
atpbar copied to clipboard
Make bars stay in fixed order, replacing themselves on resume
I'm running several nested bars. The inner bars may be run many times for each step of the outer bars. When an inner bar completes, it "stays around", and a new version of the bar pops up underneath.
After many iterations, it winds up looking like this:
100.00% :::::::::::::::::::::::::::::::::::::::: | 62 / 62 |: gradient_updates
100.00% :::::::::::::::::::::::::::::::::::::::: | 62 / 62 |: gradient_updates
100.00% :::::::::::::::::::::::::::::::::::::::: | 62 / 62 |: gradient_updates
100.00% :::::::::::::::::::::::::::::::::::::::: | 62 / 62 |: gradient_updates
100.00% :::::::::::::::::::::::::::::::::::::::: | 62 / 62 |: gradient_updates
100.00% :::::::::::::::::::::::::::::::::::::::: | 62 / 62 |: gradient_updates
100.00% :::::::::::::::::::::::::::::::::::::::: | 62 / 62 |: gradient_updates
100.00% :::::::::::::::::::::::::::::::::::::::: | 62 / 62 |: gradient_updates
0.00% | 0 / 6250 |: epochs
0.00% | 0 / 1000 |: policy_improvements
0.80% | 8 / 1000 |: bellman_updates
29.03% ::::::::::: | 18 / 62 |: gradient_updates
However, there's only ever one gradient_updates
bar around at a time, so when I start writing a new one, I'd like it to replace/override the previous one. Here's how I'd like it to look:
0.00% | 0 / 6250 |: epochs
0.00% | 0 / 1000 |: policy_improvements
0.80% | 8 / 1000 |: bellman_updates
29.03% ::::::::::: | 18 / 62 |: gradient_updates
Is this possible?
I agree; I would like it to look in the way you would like it to look.
However, that is, unfortunately, not possible in the current version (v1.0.5).