We provide Julia, including a variety of packages. To get the most recent version, run

$ module load julia

Packages

To see what Julia packages we provide, you can run

$ ls /usr/local/linux/julia-${JULIA_VERSION}/packages

We're happy to install additional packages system-wide, particularly if they seem like they would be useful to multiple people. Just email consult@econ.berkeley.edu.

For Julia 1.6.6, you need to add the packages to your Julia project (which might simply be the default project in `~/.julia/environments/v1.6`) using `Pkg.add`. The packages won't be reinstalled (unless a newer version is available than the one we installed), they'll simply be associated with your project. In Julia 1.4.1, you can directly use the packages we provide.

Install Julia packages into your account

You can also install additional packages into your own account. E.g., to install Gaussian mixtures, simply do this in Julia:

julia> using Pkg
julia> Pkg.add("GaussianMixtures")
julia> using GaussianMixtures

By running the 'using' command immediately, Julia will precompile the package.

Note that if the current version of `GaussianMixtures` were already installed at the system level, Julia won't reinstall it, but will simply make the system-installed package available in your current project.

Versions

You can use Linux environment modules to switch between different Julia versions. This can be done on a one-time basis in a given terminal session or cluster submission script, or can be done in your .bashrc (after the stanza involving ~skel/std.bashrc) to set a default different than the system default.

To see what older versions are available and use one of them:

$ module avail julia
$ module load julia/1.4.1

To switch from Julia 1.4.1 to Julia 1.6.6:

$ module switch julia/1.4.1 julia/1.6.6

To see what Julia is being used:

module list