# "Reload" package in Pkg3

**URL:** <https://discourse.julialang.org/t/reload-package-in-pkg3/14399>\
**Category:** New to Julia\
**Created:** [September 1, 2018, 8:33am UTC](https://discourse.julialang.org/t/reload-package-in-pkg3/14399 "2018-09-01T08:33:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DominiqueMakowski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dominiquemakowski/32/51410_2.png) [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Post date:** [September 1, 2018, 8:33am UTC](https://discourse.julialang.org/t/reload-package-in-pkg3/14399/1 "2018-09-01T08:33:31Z")

</div>

I have trouble reloading a package so that the changes are taking into account.

Here’s what I did:

- Opened atom
- Went to the shell mode of the REPL
- `cd`’d to a folder where I store my dev packages
- Went to the Pkg mode, did `generate Psycho`
- Did `activate .` then `import Psycho`
- This created the package basics
- Created a github repo, and connected the local folder to its repo (which you can find [here](https://github.com/neuropsychology/Psycho.jl))
- Made a slight modification to Psycho.jl to include another file of functions
- However, when I run again `import Psycho` or `using Psycho` to “reload” the package (as stated [here](https://julialang.github.io/Pkg.jl/latest/#Adding-dependencies-to-the-project-1)) after changing a function, it doesn’t take the changes into account.

I must restart Julia and activate the package and then import it and then it works. What am I doing wrong? Thank you!

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 1, 2018, 9:03am UTC](https://discourse.julialang.org/t/reload-package-in-pkg3/14399/2 "2018-09-01T09:03:36Z")

</div>

Use

> **[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

---

<div class="post-metadata">

**Author:** ![DominiqueMakowski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dominiquemakowski/32/51410_2.png) [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Post date:** [September 1, 2018, 9:05am UTC](https://discourse.julialang.org/t/reload-package-in-pkg3/14399/3 "2018-09-01T09:05:16Z")

</div>

Thanks!
