Skip to content

Documentation for using Julia with CURC OpenOnDemand #436

@ecooper-cu

Description

@ecooper-cu

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:

  1. 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 the Remote [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.

  2. Activate the Julia REPL in the bash terminal using the same executable path (/curc/sw/julia/<version>/bin/julia)

  3. Store Julia environments (or Projects) in the /projects/<user>/software/julia directory
    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 type activate /projects/<user>/software/julia/<project name>.

  4. Relocate .julia directory to /projects directory 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request, lower priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions