# Changing DEPOT\_PATH in IJulia

**URL:** https://discourse.julialang.org/t/changing-depot-path-in-ijulia/17920
**Category:** General Usage
**Created:** [November 23, 2018, 6:04pm UTC](https://discourse.julialang.org/t/changing-depot-path-in-ijulia/17920 "2018-11-23T18:04:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)
#### Post date: [November 23, 2018, 6:04pm UTC](https://discourse.julialang.org/t/changing-depot-path-in-ijulia/17920/1 "2018-11-23T18:04:21Z")

</div>

I’m deploying an in-house application as a Jupyter notebook. Thanks to environments, I can have a “stable” environment working for the app, while my “dev” environment contains the latest code changes. Precompilation is a [problem](https://github.com/JuliaLang/julia/issues/27418), however. I was thinking of circumventing the issue by having a separate DEPOT\_PATH, but I’m having a hard time making that work with IJulia, because it loads `Compat` before I get the chance to modify the `DEPOT_PATH`, and then any package that depends on Compat refuses to precompile. I figured that I could maybe create a separate IJulia kernel, where I set the JULIA\_DEPOT\_PATH to something else in the kernelspec?

```julia
{
  "display_name": "Julia 1.0.2",
  "argv": [
    "/home/cst-jean/julia-1.0.2/bin/julia",
    "-i",
    "--startup-file=yes",
    "--color=yes",
    "/home/cst-jean/.julia/packages/IJulia/DL02A/src/kernel.jl",
    "{connection_file}"
  ],
  "language": "julia"
}

```

Does anyone know of an easy way to do that? Or another approach entirely?

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [November 23, 2018, 6:06pm UTC](https://discourse.julialang.org/t/changing-depot-path-in-ijulia/17920/2 "2018-11-23T18:06:20Z")

</div>

> <https://github.com/JuliaLang/julia/blob/453a7ddcb6894cfcd8fc016634857b39416585cc/base/initdefs.jl#L47-L50>

might be useful.

---

<div class="post-metadata">

### Author: ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)
#### Post date: [November 23, 2018, 6:56pm UTC](https://discourse.julialang.org/t/changing-depot-path-in-ijulia/17920/3 "2018-11-23T18:56:02Z")

</div>

```julia
  "argv": [
    "env",
    "JULIA_DEPOT_PATH=/home/cst-jean/blahblah",
    "/home/cst-jean/julia-1.0.2/bin/julia",
   ...

```

did the trick.
