Skip to content

Commit ae70981

Browse files
committed
testing
1 parent d6768b3 commit ae70981

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/hpc/09_ood/02_jupyter_with_conda_singularity.mdx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,33 @@ singularity exec $nv \
159159
:::warning
160160
If you used a different overlay (/scratch/$USER/my_env/overlay-15GB-500K.ext3 shown above) or .sif file (/scratch/work/public/singularity/cuda12.3.2-cudnn9.0.0-ubuntu-22.04.4.sif shown above), you MUST change those lines in the command above to the files you used.
161161
:::
162+
163+
Edit the default `kernel.json` file by setting PYTHON_LOCATION and KERNEL_DISPLAY_NAME using a text editor like nano/vim.
164+
```json
165+
{
166+
"argv": [
167+
"PYTHON_LOCATION",
168+
"-m",
169+
"ipykernel_launcher",
170+
"-f",
171+
"{connection_file}"
172+
],
173+
"display_name": "KERNEL_DISPLAY_NAME",
174+
"language": "python"
175+
}
176+
```
177+
to
178+
```json
179+
{
180+
"argv": [
181+
"/home/<Your NetID>/.local/share/jupyter/kernels/my_env/python",
182+
"-m",
183+
"ipykernel_launcher",
184+
"-f",
185+
"{connection_file}"
186+
],
187+
"display_name": "my_env",
188+
"language": "python"
189+
}
190+
```
191+
Update the `"<Your NetID>"` to your own NetID without the `"<>"` symbols.

0 commit comments

Comments
 (0)