# Distributions getting started example does not work

**URL:** <https://discourse.julialang.org/t/distributions-getting-started-example-does-not-work/30557>\
**Category:** New to Julia\
**Created:** [October 31, 2019, 7:54pm UTC](https://discourse.julialang.org/t/distributions-getting-started-example-does-not-work/30557 "2019-10-31T19:54:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramonz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ramonz/32/548_2.png) [@ramonz](https://discourse.julialang.org/u/ramonz)\
**Post date:** [October 31, 2019, 7:54pm UTC](https://discourse.julialang.org/t/distributions-getting-started-example-does-not-work/30557/1 "2019-10-31T19:54:23Z")

</div>

Hello

After trying the “Getting started example” in [Distributions Package · Distributions.jl](https://JuliaStats.github.io/Distributions.jl/stable/) documentation I get an error which I wasn´t expecting.

```julia

> using Random, Distributions
> Random.seed!(123) # Setting the seed
> d = Normal()

UndefVarError: Normal not defined

Stacktrace:
 [1] top-level scope at In[29]:1

```

This is after I have installed and updated Distributions and Random.  
The version of Julia I am using is 1.1.0

Hope someone can help  
Thanks

---

<div class="post-metadata">

**Author:** ![ramonz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ramonz/32/548_2.png) [@ramonz](https://discourse.julialang.org/u/ramonz)\
**Post date:** [October 31, 2019, 7:58pm UTC](https://discourse.julialang.org/t/distributions-getting-started-example-does-not-work/30557/2 "2019-10-31T19:58:08Z")

</div>

By the way, I only get the error in the Jupyter environment, not the REPL.

---

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [October 31, 2019, 9:54pm UTC](https://discourse.julialang.org/t/distributions-getting-started-example-does-not-work/30557/3 "2019-10-31T21:54:43Z")

</div>

I cannot reproduce this (in Atom or in Jupyter), although it should be said that I am using Julia 1.2.0 (on Windows 10).

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [October 31, 2019, 10:04pm UTC](https://discourse.julialang.org/t/distributions-getting-started-example-does-not-work/30557/4 "2019-10-31T22:04:16Z")

</div>

did you try

```julia
d = Distributions.Normal()

```

?

---

<div class="post-metadata">

**Author:** ![ramonz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ramonz/32/548_2.png) [@ramonz](https://discourse.julialang.org/u/ramonz)\
**Post date:** [October 31, 2019, 11:26pm UTC](https://discourse.julialang.org/t/distributions-getting-started-example-does-not-work/30557/5 "2019-10-31T23:26:57Z")

</div>

Thanks guys. It’s fixed. It had something to do with the IJulia installation which somehow got compromised while updating other registries.
