# Customising Turing.jl sample progress bar

**URL:** https://discourse.julialang.org/t/customising-turing-jl-sample-progress-bar/125110
**Category:** New to Julia
**Tags:** question, turing, progress-bar
**Created:** [January 23, 2025, 10:28am UTC](https://discourse.julialang.org/t/customising-turing-jl-sample-progress-bar/125110 "2025-01-23T10:28:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sahil\_Khan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sahil_khan/32/47573_2.png) [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)
#### Post date: [January 23, 2025, 10:28am UTC](https://discourse.julialang.org/t/customising-turing-jl-sample-progress-bar/125110/1 "2025-01-23T10:28:55Z")

</div>

Hello,

I was wondering that can we customise sampling progressbar during inference by Turing.jl?

```julia
 sample(model, NUTS(1000, 0.65), MCMCThreads(), 10000, 3, progress = true)

```

At the moment it shows progress after 1/3 sampling is done. I want it to report after every 1/10. Is this possible?

---

<div class="post-metadata">

### Author: ![penelopeysm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/penelopeysm/32/213172_2.png) [@penelopeysm](https://discourse.julialang.org/u/penelopeysm)
#### Post date: [January 26, 2025, 12:18am UTC](https://discourse.julialang.org/t/customising-turing-jl-sample-progress-bar/125110/3 "2025-01-26T00:18:22Z")

</div>

Hi @Sahil_Khan, this is a longstanding issue with Turing and the summary is that it’s generally not possible right now, see [Progress reporting in parallel sampling · Issue #2264 · TuringLang/Turing.jl · GitHub](https://github.com/TuringLang/Turing.jl/issues/2264) and [More useful logging when sampling multiple chains · Issue #82 · TuringLang/AbstractMCMC.jl · GitHub](https://github.com/TuringLang/AbstractMCMC.jl/issues/82) for more discussion.

---

<div class="post-metadata">

### Author: ![Sahil\_Khan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sahil_khan/32/47573_2.png) [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)
#### Post date: [January 26, 2025, 6:06am UTC](https://discourse.julialang.org/t/customising-turing-jl-sample-progress-bar/125110/4 "2025-01-26T06:06:01Z")

</div>

What about saving chain internally or printing some information about likelihood during run?. So, one gets some information whats going on for long runs.

How can i do this?

---

<div class="post-metadata">

### Author: ![penelopeysm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/penelopeysm/32/213172_2.png) [@penelopeysm](https://discourse.julialang.org/u/penelopeysm)
#### Post date: [July 25, 2026, 5:51pm UTC](https://discourse.julialang.org/t/customising-turing-jl-sample-progress-bar/125110/5 "2026-07-25T17:51:36Z")

</div>

Since quite a few people have clicked the link I posted above, I should add that the received wisdom of it being impossible was not fully accurate, and since about a year ago sampling with `MCMCThreads()` now gives much more informative progress bars, with some customisation options to boot. There are some examples with videos at [Progress bars when sampling multiple chains - Pull Request #168 - TuringLang/AbstractMCMC.jl - GitHub](https://github.com/TuringLang/AbstractMCMC.jl/pull/168).

There are also callbacks that one can use to log / visualise more information during runs, there are some docs here [Callbacks · AbstractMCMC](https://turinglang.org/AbstractMCMC.jl/stable/callbacks/).
