-
Notifications
You must be signed in to change notification settings - Fork 1
Singularity on Iris
Mamie Wang edited this page Jul 24, 2024
·
1 revision
Shared singularity containers are available at /usersoftware/chanj3/singularity/.
singularity help
singularity help <command>singularity shell <image-name>.sifsingularity run <image-name>.sifsingularity exec <image-name>.sif <command>singularity pull <image-name>.sif <source>singularity build <image-name>.sif <definition-file>singularity exec --bind <host-dir>:<container-dir> <image-name>.sif <command>singularity exec --nv <image-name>.sif <command>- Create a directory for the new kernel, e.g.
~/.local/share/jupyter/kernels/my_kernel/. - Inside this directory, create a kernel.json file with contents similar to the following:
{
"argv": [
"singularity",
"exec",
"/path/to/my_container.sif",
"python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "My Singularity Kernel",
"language": "python"
}- Verify kernel installation: start Jupyter Notebook, you should see
display_nameas an available kernel.