Julia kernels JupyterLab
Overview
This documentation uses the following variables:
| Variable | Description | Example value |
|---|---|---|
${julia_module} |
The module to load to use Julia | Julia/1.6.2-linux-x86_64 |
kernel_name |
The Julia kernel name | Julia |
Operations
Add Julia as a JupyterLab kernel
Install IJulia
The package IJulia is a prerequisite to use Julia as a kernel in JupyterLab;
It can be installed from a Julia interactive session.
Load the Julia module:
module load ${julia_module}
Run the Julia interpreter:
julia
From the interpreter, type ] to enter the package manager command line interface:
[u000000@mel0123 ~]$ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.2 (2021-07-14)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> ]
(v1.6) pkg>
Run the following command to install the IJulia package:
add IJulia
Once installed, quit the Julia package manager command line interface with Ctrl+C
Add Julia kernel
Commands
The following commands must be run from the Julia interpreter.
Load the IJulia module:
using IJulia
Install the new kernel:
installkernel("kernel_name")