-
Notifications
You must be signed in to change notification settings - Fork 65
Description
I recently got started with using Julia through CURC OpenOnDemand's VS Code-Server, and there are a couple of tips that I picked up along the way (thanks to the CURC staff) that might be useful to other users. I've detailed my workflow for getting started with Julia below:
-
Install the Julia extension for VS Code, and set the executable path to CURC's Julia installation.
Notes: The extension ID is:julialang.language-julia. To set the path, go to the installed extension and select "Extension settings". Under theRemote [ondemand.rc.colorado.edu]user profile, edit the entry for "Julia: Executable Path". Several versions of Julia are stored in/curc/sw/julia, and you can set the executable path as/curc/sw/julia/<version>/bin/julia. -
Activate the Julia REPL in the bash terminal using the same executable path (
/curc/sw/julia/<version>/bin/julia) -
Store Julia environments (or Projects) in the
/projects/<user>/software/juliadirectory
Notes: Julia installations can take up a lot of space, and exceed the limits in your/home/<user>directory. To create a new Julia environment or activate an existing one, activate the Julia REPL, enter package manager mode using the]symbol, and typeactivate /projects/<user>/software/julia/<project name>. -
Relocate
.juliadirectory to/projectsdirectory and update depot path with
mv ~/.julia /projects/<user>/.julia
echo 'export JULIA_DEPOT_PATH=/projects/<user>/.julia' >> ~/.bashrc
source ~/.bashrc
This prevents your Julia cache from filling up your home directory