Skip to content

Julia Tips

Lars Vilhuber edited this page Nov 24, 2023 · 2 revisions

Julia environments are finicky, and beyond the scope of this Wiki.

Managing multiple Julia versions

Julia has a native version manager. Follow instructions at https://github.com/JuliaLang/juliaup to install it - it will be installed in your personal directory (so is not shared). Then, to add a particular Julia version,

juliaup add 1.9.2
juliaup default 1.9.2

and your next call to Julia will launch 1.9.2.

Julia is picky about how environments are passed to workers

julia --project=julia16 -p 4

should start with the project installed in julia16 and 4 worker processes. In fact, the worker processes ignore the project packages, and the whole thing fails (see this link).

Workaround:

export JULIA_PROJECT=julia16
julia -p 4

seems to work.

Clone this wiki locally