# Different bar styles with @showprogress and @distributed?

**URL:** <https://discourse.julialang.org/t/different-bar-styles-with-showprogress-and-distributed/30990>\
**Category:** New to Julia\
**Created:** [November 12, 2019, 4:44am UTC](https://discourse.julialang.org/t/different-bar-styles-with-showprogress-and-distributed/30990 "2019-11-12T04:44:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bashonubuntu](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Post date:** [November 12, 2019, 4:44am UTC](https://discourse.julialang.org/t/different-bar-styles-with-showprogress-and-distributed/30990/1 "2019-11-12T04:44:16Z")

</div>

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 😊)

```julia
@showprogress 1 "Computing function..." BarGlyphs("[=>]") @distributed (+) for i in 1:10
    sleep(0.1)
    i^2
end

```

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [November 12, 2019, 9:54pm UTC](https://discourse.julialang.org/t/different-bar-styles-with-showprogress-and-distributed/30990/2 "2019-11-12T21:54:22Z")

</div>

You can always use the `p = Progress(10, barglyphs=BarGlyphs("[=>]"))` and an explicit `next!` in the loop.

---

<div class="post-metadata">

**Author:** ![bashonubuntu](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Post date:** [November 12, 2019, 9:56pm UTC](https://discourse.julialang.org/t/different-bar-styles-with-showprogress-and-distributed/30990/3 "2019-11-12T21:56:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [November 16, 2021, 11:38am UTC](https://discourse.julialang.org/t/different-bar-styles-with-showprogress-and-distributed/30990/4 "2021-11-16T11:38:04Z")

</div>

Hi, I am trying to change the bar style and bar len but with `asyncmap` but it does not show the progress bar correctly:

```julia
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?
