# Reset Julia REPL

**URL:** <https://discourse.julialang.org/t/reset-julia-repl/45489>\
**Category:** New to Julia\
**Created:** [August 25, 2020, 7:00am UTC](https://discourse.julialang.org/t/reset-julia-repl/45489 "2020-08-25T07:00:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![conditionality](https://avatars.discourse-cdn.com/v4/letter/c/4af34b/32.png) [@conditionality](https://discourse.julialang.org/u/conditionality)\
**Post date:** [August 25, 2020, 7:00am UTC](https://discourse.julialang.org/t/reset-julia-repl/45489/1 "2020-08-25T07:00:26Z")

</div>

I have a script that uses a global variable. When experimenting I run the script via julia REPL by writing include(“myscript.jl”). This works fine the first time, but the second time I always get the message “WARNING: redefinition of constant my\_global\_variable. This may fail, cause incorrect answers, or produce other errors.” I can understand this error since the global variable is already in memory and me running include again just reloads a copy of same variable. Is there a command in the REPL allowing me to reset everything before I run include(“myscript.jl”) (except for the obvious solution of closing the REPL)?

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [August 25, 2020, 7:45am UTC](https://discourse.julialang.org/t/reset-julia-repl/45489/2 "2020-08-25T07:45:35Z")

</div>

You are looking for

> **[GitHub - timholy/Revise.jl: Automatically update function definitions in a...](https://github.com/timholy/Revise.jl)**
>
> Automatically update function definitions in a running Julia session - GitHub - timholy/Revise.jl: Automatically update function definitions in a running Julia session
