# ERROR: UndefVarError: \`plot\_chains\` not defined

**URL:** <https://discourse.julialang.org/t/error-undefvarerror-plot-chains-not-defined/102641>\
**Category:** Probabilistic Programming\
**Tags:** turing\
**Created:** [August 9, 2023, 2:39pm UTC](https://discourse.julialang.org/t/error-undefvarerror-plot-chains-not-defined/102641 "2023-08-09T14:39:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Githinji](https://avatars.discourse-cdn.com/v4/letter/g/e68b1a/32.png) [@George\_Githinji](https://discourse.julialang.org/u/George_Githinji)\
**Post date:** [August 9, 2023, 2:39pm UTC](https://discourse.julialang.org/t/error-undefvarerror-plot-chains-not-defined/102641/1 "2023-08-09T14:39:41Z")

</div>

I installed `Turing` and `TuringGLM` and then ran an example as detailed in [the tutorial](https://turinglang.org/TuringGLM.jl/dev/tutorials/linear_regression/) . However when I ran `plot_chains(chns)` , I ran into an issue.

```julia
ERROR: UndefVarError: `plot_chains` not defined
Stacktrace:
 [1] top-level scope
   @ REPL[24]:1

```

When i installed TuringGLM, I had a warning

```julia
julia> using TuringGLM
[Info: Precompiling TuringGLM [0004c1f4-53c5-4d43-a221-a1dac6cf6b74]
┌ Warning: Module Turing with build ID fafbfcfd-f23d-ea23-0003-6021b31a125e is missing from the cache.
│ This may mean Turing [fce5fe82-541a-59a6-adf8-730c64b5f9a0] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1793
[Info: Skipping precompilation since __precompile__ (false). Importing TuringGLM [0004c1f4-53c5-4d43-a221-a1dac6cf6b74].
[Info: Precompiling TransducersLazyArraysExt [cdbecb60-77cf-500a-86c2-8d8bbf22df88]
┌ Warning: Module Transducers with build ID fafbfcfd-fa1e-c776-0003-60148ec190fc is missing from the cache.
│ This may mean Transducers [28d57a85-8fef-5791-bfe6-a80928e7c999] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1793
[Info: Skipping precompilation since __precompile__ (false). Importing TransducersLazyArraysExt [cdbecb60-77cf-500a-86c2-8d8bbf22df88].

```

Are these two issues related? and if not how do I resolved the `UndefVarError`?
