Hello,
What is the correct way to get different bar styles when using @showprogress along with @distributed? I tried (unsuccessfully) the following: (edit: also pinging @tim.holy )
@showprogress 1 "Computing function..." BarGlyphs("[=> ]") @distributed (+) for i in 1:10
sleep(0.1)
i^2
end
You can always use the p = Progress(10, barglyphs=BarGlyphs("[=> ]"))
and an explicit next!
in the loop.
2 Likes
Thank you! Yes, thatβs what I ended up doing in the end. Was just curious to know if there was something which could be augmented as an argument to @showprogress
Hi, I am trying to change the bar style and bar len but with asyncmap
but it does not show the progress bar correctly:
p=ProgressMeter.Progress(10, desc="Compute", barglyphs=BarGlyphs("[\u25A0\u25A0 ]"), barlen=20,color= :green)
update!(p,0)
vals= asyncmap(1:10;ntasks=5) do x
sleep(1)
ProgressMeter.next!(p)
x^2
end
update!(p,1)
It prints the progress bar multiple times.
Is it a bug?