Julia
Install Julia
Install Julia with the juliaup installer.
Linux/MacOS
curl -fsSL https://install.julialang.org | sh -s -- -yWindows
winget install julia -s msstoreAlternatively, download and install Julia official binaries.
Post-install configurations
Auto-activate local projects
Set environment variable JULIA_PROJECT=@. to let Julia automatically load the closest upstream Project.toml and activate the environment.
export JULIA_PROJECT=@.Note
IJulia.jl, the Julia kernel for Jupyter notebooks, sets JULIA_PROJECT=@. by default. Thus, Jupyter notebooks load their local Julia environments automatically.
Warning
Loading local environments unconditionally is unsafe for untrusted sources, as shown in Nefarious.jl.
That is why Julia does not run julia --project=@. by default.
Fully utilize CPU threads
Set environment variable JULIA_NUM_THREADS=auto to let Julia utilize all CPU threads.
export JULIA_NUM_THREADS=autoRun Python packages
To run Python packages in Julia (such as matplotlib for PythonPlot.jl and jupyter for IJulia.jl)
- Install
micromamba, the minimal Python package manager. - Create a conda environment, for example,
micromamba create -n juliapy jupyter matplotlib. - Set up the following environment variables
PythonCall.jldocumentationConda.jldocumentation
export CONDA_JL_HOME="${HOME}/micromamba/envs/juliapy"
export JULIA_PYTHONCALL_EXE="${CONDA_JL_HOME}/bin/python"
export JULIA_CONDAPKG_BACKEND="Null"