User Tools

Site Tools


other:python:starting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
other:python:starting [2023/05/17 10:10] – [Using a non-standard kernel] Added mkdir to create the kernels directory jypeterother:python:starting [2026/02/26 14:34] (current) – [JupyterHub servers available for LSCE users] Improved again jypeter
Line 136: Line 136:
  
  
-===== Using the LSCE jupyterhub server =====+===== Using JupyterHub servers ===== 
 + 
 +==== JupyterHub servers available for LSCE users ==== 
 + 
 +  * If you need to use the LSCE or IPSL JupyterHub servers: 
 +    * You **have to** be on the LSCE wired network, 
 +    * ...or use the [[https://intranet.lsce.ipsl.fr/informatique/en/intra-cea.php|LSCE VPN]] when you are //outside LSCE// (eduroam, home network, another lab, ...) 
 +    * ...or check the //Connect from outside// part of the [[https://documentations.ipsl.fr/spirit/jupyterhub/connection.html|IPSL ESPRI documentation]], if you want to try accessing the IPSL ''spirit[x]'' notebook servers using an ssh tunnel... 
 + 
 +  * Servers: 
 +    * [[https://intranet.lsce.ipsl.fr/informatique/en/jupyter/index.php|LSCE JupyterHub server information]] 
 +    * [[https://documentations.ipsl.fr/spirit/jupyterhub/documentation.html|IPSL JupyterHub server information]] 
 +      * IPSL notebook servers: 
 +        * Server connected to the ''spirit'' disks: https://jupyter-su.ipsl.fr/spirit/ 
 +        * Server connected to the ''spiritx'' disks: https://jupyter-x.ipsl.fr/spiritx/. 
 + 
 +==== Notebooks and jupyter servers documentation ==== 
 + 
 +FIXME
  
-The [[https://intranet.lsce.ipsl.fr/informatique/en/jupyter/index.php|LSCE jupyterhub notebook server]] is available for users with a LSCE Linux account:  
-  * from a computer on the LSCE wired network: https://jupyter.lsce.ipsl.fr/ 
-  * from other computers: start the [[https://intranet.lsce.ipsl.fr/informatique/fr/vpn-forticlient.php#vpnlsce|LSCE VPN]] before opening https://jupyter.lsce.ipsl.fr/ 
  
 ==== Using a non-standard kernel ==== ==== Using a non-standard kernel ====
Line 161: Line 176:
 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
Line 175: Line 190:
 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": [
Line 186: Line 201:
  "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 =====
  
Line 198: Line 214:
 ==== LSCE distribution ==== ==== LSCE distribution ====
  
-  * Contact: the LSCE system administrators ([[help-lsce@lsce.ipsl.fr]])+  * Contact: the [[other:newppl:starting#getting_help_from_the_lsce_system_administrators|LSCE system administrators]]
   * Where: //obelix// interactive servers and //obelix// cluster at LSCE   * Where: //obelix// interactive servers and //obelix// cluster at LSCE
   * Initialization type: [[other:newppl:starting#using_module_to_access_optional_programs|module based]] + //conda//   * Initialization type: [[other:newppl:starting#using_module_to_access_optional_programs|module based]] + //conda//
-  * What's installed: type ''conda list'' after initializing the LSCE distribution+  * What's installed: type ''conda list'' after initializing on of the LSCE distributions
  
 <code> <code>
-$ module -t avail +$ module avail python 
-[...] +python/2.7      python/2-ramces python/3.9      python/intel 
-python/2.7 +python/2.7.5    python/3        python/4artic
-python/2.7.5 +
-python/2-ramces +
-python/3 +
-python/3.9 +
-python/4artic +
-python/esmpy +
-python/intel +
-[...]+
  
 $ module load python/3.9 $ module load python/3.9
Line 222: Line 230:
  
 $ python $ python
-Python 3.9.7 (default, Sep 16 2021, 13:09:58) +Python 3.9.15 (main, Nov 24 2022, 14:31:59) 
-[GCC 7.5.0] :: Anaconda, Inc. on linux+[GCC 11.2.0] :: Anaconda, Inc. on linux
 Type "help", "copyright", "credits" or "license" for more information. Type "help", "copyright", "credits" or "license" for more information.
 >>> >>>
other/python/starting.1684311044.txt.gz · Last modified: by jypeter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki