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
When printing anything in a loop with ProgressBars, I have the impression the new progress bar is printed by erasing the second-to-last line.
Then, any further print erases the last printed line. This has the following results for me:
julia>using ProgressBars
julia>for i inProgressBar(1:10)
sleep(0.2)
println("Line $i--1")
println("Line $i--2")
print("Line $i--3") # we see this line get written and then overwrittenend0.0%┣ ┫ 0/10 [00:00<00:00, -0s/it]
Line 1--110.0%┣█████▎ ┫ 1/10 [00:00<Inf:Inf, InfGs/it]
Line 2--120.0%┣███████████▋ ┫ 2/10 [00:00<00:03, 2it/s]
Line 3--130.0%┣█████████████████▍ ┫ 3/10 [00:01<00:02, 3it/s]
Line 4--140.0%┣███████████████████████▏ ┫ 4/10 [00:01<00:02, 4it/s]
Line 5--150.0%┣█████████████████████████████ ┫ 5/10 [00:01<00:01, 4it/s]
Line 6--160.0%┣██████████████████████████████████▉ ┫ 6/10 [00:01<00:01, 4it/s]
Line 7--170.0%┣████████████████████████████████████████▋ ┫ 7/10 [00:01<00:01, 4it/s]
Line 8--180.0%┣██████████████████████████████████████████████▍ ┫ 8/10 [00:02<00:00, 4it/s]
Line 9--190.0%┣████████████████████████████████████████████████████▏ ┫ 9/10 [00:02<00:00, 4it/s]
Line 10--1100.0%┣████████████████████████████████████████████████████████┫ 10/10 [00:02<00:00, 4it/s]
Line 10--3
julia>for i inProgressBar(1:10)
sleep(0.2)
println("Line $i--1")
end0.0%┣ ┫ 0/10 [00:00<00:00, -0s/it]
10.0%┣█████▎ ┫ 1/10 [00:00<Inf:Inf, InfGs/it]
20.0%┣███████████▋ ┫ 2/10 [00:00<00:03, 2it/s]
30.0%┣█████████████████▍ ┫ 3/10 [00:01<00:02, 3it/s]
40.0%┣███████████████████████▏ ┫ 4/10 [00:01<00:02, 4it/s]
50.0%┣█████████████████████████████ ┫ 5/10 [00:01<00:01, 4it/s]
60.0%┣██████████████████████████████████▉ ┫ 6/10 [00:01<00:01, 4it/s]
70.0%┣████████████████████████████████████████▋ ┫ 7/10 [00:01<00:01, 4it/s]
80.0%┣██████████████████████████████████████████████▍ ┫ 8/10 [00:02<00:00, 4it/s]
90.0%┣████████████████████████████████████████████████████▏ ┫ 9/10 [00:02<00:00, 4it/s]
100.0%┣████████████████████████████████████████████████████████┫ 10/10 [00:02<00:00, 4it/s]
julia>for i inProgressBar(1:10)
sleep(0.2)
print("Line $i--1")
end100.0%┣████████████████████████████████████████████████████████┫ 10/10 [00:02<00:00, 4it/s]
Line 10--1
Not sure if it is helpful, but I am using Julia v1.11.2 with ProgressBars v1.5.1 (latest stable to date), on GNOME Terminal 3.44.0.
The text was updated successfully, but these errors were encountered:
When printing anything in a loop with ProgressBars, I have the impression the new progress bar is printed by erasing the second-to-last line.
Then, any further
print
erases the last printed line. This has the following results for me:Not sure if it is helpful, but I am using Julia v1.11.2 with ProgressBars v1.5.1 (latest stable to date), on GNOME Terminal 3.44.0.
The text was updated successfully, but these errors were encountered: