Changing DEPOT_PATH in IJulia

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, 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?

{
  "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?

might be useful.

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

did the trick.