timholy / ProgressMeter.jl

Progress meter for long-running computations
MIT License
694 stars 91 forks source link

`offset` doesn't work with IJulia #238

Open MarcMush opened 2 years ago

MarcMush commented 2 years ago

Multiple progressbars with offset doesn't work in a jupyter notebook, both progressbars are printed on top of each other:

p1 = Progress(10; desc="A");
p2 = Progress(10; desc="B", offset=1);
for i in 1:10
    next!(p2)
    sleep(0.1)
    next!(p1)
    sleep(0.1)
end

https://user-images.githubusercontent.com/35898736/165163043-8dde54b2-afa1-46a4-a846-571620ab08f7.mp4

Originally posted by @MarcMush in https://github.com/timholy/ProgressMeter.jl/issues/156#issuecomment-1108974474