# invalid redefinition of constant in Juno. But works in terminal

**URL:** <https://discourse.julialang.org/t/invalid-redefinition-of-constant-in-juno-but-works-in-terminal/8180>\
**Category:** New to Julia\
**Created:** [January 5, 2018, 2:51pm UTC](https://discourse.julialang.org/t/invalid-redefinition-of-constant-in-juno-but-works-in-terminal/8180 "2018-01-05T14:51:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMalakhov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mmalakhov/32/10138_2.png) [@MMalakhov](https://discourse.julialang.org/u/MMalakhov)\
**Post date:** [January 5, 2018, 2:51pm UTC](https://discourse.julialang.org/t/invalid-redefinition-of-constant-in-juno-but-works-in-terminal/8180/1 "2018-01-05T14:51:36Z")

</div>

Hello!  
I’m new in Julia, I worked mostly on Matlab. There is a strange problem for me in code:

When I type in Atom just this two lines:

```julia
Nk=199; 
sp=zeros(Nk);

```

I get mistake:

> LoadError: invalid redefinition of constant sp  
> while loading …/Parameters.jl, in expression starting on line 2  
> include\_string(::String, ::String) at loading.jl:522  
> include\_string(::Module, ::String, ::String) at Compat.jl:174  
> (::Atom.##57#60{String,String})() at eval.jl:74  
> withpath(::Atom.##57#60{String,String}, ::String) at utils.jl:30  
> withpath(::Function, ::String) at eval.jl:38  
> macro expansion at eval.jl:72 [inlined]  
> (::Atom.##56#59{Dict{String,Any}})() at task.jl:80

But when I do this thing directly in terminal, it works without problem. What is it?

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [January 5, 2018, 4:51pm UTC](https://discourse.julialang.org/t/invalid-redefinition-of-constant-in-juno-but-works-in-terminal/8180/2 "2018-01-05T16:51:57Z")

</div>

There must be a function or constant named `sp` in the default Juno environment. Can you try just running

```julia
sp

```

to see what it is, and

```julia
?sp

```

to see its documentation (if it has any)?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [January 5, 2018, 6:15pm UTC](https://discourse.julialang.org/t/invalid-redefinition-of-constant-in-juno-but-works-in-terminal/8180/3 "2018-01-05T18:15:47Z")

</div>

There isn’t.
