Both sides previous revisionPrevious revisionNext revision | Previous revision |
other:python:starting [2024/09/13 16:20] – Updated the jupyter section jypeter | other:python:starting [2025/07/03 16:18] (current) – [Using a non-standard kernel] jypeter |
---|
Available kernels: | Available kernels: |
python3 /home/share/unix_files/cdat/miniconda3_21-02/envs/cdatm19_nompi_py3/share/jupyter/kernels/python3</code> | python3 /home/share/unix_files/cdat/miniconda3_21-02/envs/cdatm19_nompi_py3/share/jupyter/kernels/python3</code> |
- Copy the existing kernel directory that you have found to your home directory. You can use the existing kernel name, or use a new kernel name (using only ASCII letters, numbers, ''-'' hyphen, ''.'' period and ''_'' underscore)\\ <code> >mkdir -p ~/.local/share/jupyter/kernels | - Copy the existing kernel directory that you have found to your home directory (more precisely to the ''~/.local/share/jupyter/kernels'' directory). You can use the existing kernel name (probably ''python3''), or use a new kernel name (using only ASCII letters, numbers, ''-'' hyphen, ''.'' period and ''_'' underscore)\\ <code> >mkdir -p ~/.local/share/jupyter/kernels |
>cp -pr /home/share/unix_files/cdat/miniconda3_21-02/envs/cdatm19_nompi_py3/share/jupyter/kernels/python3 ~/.local/share/jupyter/kernels | >cp -pr /home/share/unix_files/cdat/miniconda3_21-02/envs/cdatm19_nompi_py3/share/jupyter/kernels/python3 ~/.local/share/jupyter/kernels |
>cp -pr /home/share/unix_files/cdat/miniconda3_21-02/envs/cdatm19_nompi_py3/share/jupyter/kernels/python3 ~/.local/share/jupyter/kernels/my_favorite_kernel | >cp -pr /home/share/unix_files/cdat/miniconda3_21-02/envs/cdatm19_nompi_py3/share/jupyter/kernels/python3 ~/.local/share/jupyter/kernels/my_favorite_kernel |
kernel.json logo-32x32.png logo-64x64.png | kernel.json logo-32x32.png logo-64x64.png |
| |
>cat your_home_dir/.local/share/jupyter/kernels/my_favorite_kernel/kernel.json | >cat ~/.local/share/jupyter/kernels/my_favorite_kernel/kernel.json |
{ | { |
"argv": [ | "argv": [ |
"display_name": "My favorite Python kernel", | "display_name": "My favorite Python kernel", |
"language": "python" | "language": "python" |
| } |
</code> | </code> |
- refresh the https://jupyter.lsce.ipsl.fr/ page and the new kernel(s) should appear in the kernels' related menus | - Refresh the ''https://jupyter.lsce.ipsl.fr/'' (if you are using the LSCE notebook server) page and the new kernel(s) should appear in the kernels' related menus |
===== Python distributions available for LSCE users ===== | ===== Python distributions available for LSCE users ===== |
| |