# How to use Revise to track a local script

**URL:** <https://discourse.julialang.org/t/how-to-use-revise-to-track-a-local-script/102341>\
**Category:** New to Julia\
**Tags:** revise\
**Created:** [August 1, 2023, 6:02am UTC](https://discourse.julialang.org/t/how-to-use-revise-to-track-a-local-script/102341 "2023-08-01T06:02:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinfreedom](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Post date:** [August 1, 2023, 6:02am UTC](https://discourse.julialang.org/t/how-to-use-revise-to-track-a-local-script/102341/1 "2023-08-01T06:02:29Z")

</div>

Hi, I have a local `myfile.jl` file that contains some julia code that do some one-time computations. I don’t want to bother to turn it into a package, so I use e.g., `include("./myfile.jl")` to have access to its variables in the REPL, including functions that modify certain variables in the space, or even a module that contains some members hidden from the exterior space. I would like to use `Revise` to keep track of its changes but can’t seem to make it work ,e.g., `Revise.track("./myfile.jl")` does not work. I attempted `push!(LOAD_PATH,".")` as suggested by some old online resources, but did not work … So is there a way? I’m using Julia 1.9 on WSL ubuntu 20.04.

---

<div class="post-metadata">

**Author:** ![thofma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thofma/32/1691_2.png) [@thofma](https://discourse.julialang.org/u/thofma)\
**Post date:** [August 1, 2023, 6:09am UTC](https://discourse.julialang.org/t/how-to-use-revise-to-track-a-local-script/102341/2 "2023-08-01T06:09:16Z")

</div>

Have you tried `Revise.includet`? (see also the limitations mentioned at [User reference · Revise.jl](https://timholy.github.io/Revise.jl/stable/user_reference/#Revise.includet))

---

<div class="post-metadata">

**Author:** ![jinfreedom](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Post date:** [August 1, 2023, 6:27am UTC](https://discourse.julialang.org/t/how-to-use-revise-to-track-a-local-script/102341/3 "2023-08-01T06:27:31Z")

</div>

Thank you for the tip. It seems `includet()` works only for function changes, e.g., if you call a changed function, the behavior changes. However, variables defined in the module cannot be updated.

---

<div class="post-metadata">

**Author:** ![thofma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thofma/32/1691_2.png) [@thofma](https://discourse.julialang.org/u/thofma)\
**Post date:** [August 1, 2023, 6:36am UTC](https://discourse.julialang.org/t/how-to-use-revise-to-track-a-local-script/102341/4 "2023-08-01T06:36:07Z")

</div>

Yes, this limitation is mentioned in the documenation.
