Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| jupyterhub:custom_conda [2021/11/08 11:40] – créée admin | jupyterhub:custom_conda [2021/11/08 12:01] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| - | First we request some resources using Slurm: | + | First we request some resources using SGE: |
| * 1 GPU | * 1 GPU | ||
| - | * 24 GB memory | + | * 20 GB memory |
| - | * 8 cores | + | * 2h walltime |
| - | * 4h walltime | + | |
| - | * Interactive bash session | + | |
| <code bash> | <code bash> | ||
| - | $ srun -p gpu -t 4: | + | $ qlogin |
| </ | </ | ||
| A new session well be opened in a GPU node. | A new session well be opened in a GPU node. | ||
| Ligne 22: | Ligne 20: | ||
| We load anaconda | We load anaconda | ||
| <code bash> | <code bash> | ||
| - | $ module load anaconda3@2020.11/gcc-11.1.0 | + | $ module load anaconda |
| + | </code> | ||
| + | |||
| + | We create a new environment with a specific version of python. | ||
| + | |||
| + | <code bash> | ||
| + | $ conda create -y --prefix $WORK/meso1 python=3.7 | ||
| </ | </ | ||
| Ligne 75: | Ligne 79: | ||
| ... | ... | ||
| [I 15: | [I 15: | ||
| - | [I 15: | + | [I 15: |
| [I 15: | [I 15: | ||
| [I 15: | [I 15: | ||
| Ligne 83: | Ligne 87: | ||
| file:/// | file:/// | ||
| Or copy and paste one of these URLs: | Or copy and paste one of these URLs: | ||
| - | http://node4-21: | + | http://node3-70: |
| or http:// | or http:// | ||
| (meso1)$ | (meso1)$ | ||
| Ligne 90: | Ligne 94: | ||
| There are three important pieces of information, | There are three important pieces of information, | ||
| - | * The node used by Slurm, here **node4-21** | + | * The node used by SGE, here **node3-70** |
| * The port picked by Jupyter-nootbook, | * The port picked by Jupyter-nootbook, | ||
| * The token of the session, here **token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23** | * The token of the session, here **token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23** | ||
| <WRAP center round alert 60%> | <WRAP center round alert 60%> | ||
| - | We can't connect directly to the link above because **node4-21** is located in private network. We have to use ssh port tunneling. | + | We can't connect directly to the link above because **node3-70** is located in private network. We have to use ssh port tunneling. |
| </ | </ | ||
| ====== SSH tunnel ====== | ====== SSH tunnel ====== | ||
| - | We need to establish a tunnel from '' | + | We need to establish a tunnel from '' |
| - | From a new terminal on '' | + | From a new terminal on '' |
| <code bash> | <code bash> | ||
| - | $ ssh -g -N -L 9999: | + | $ ssh -g -N -L 9999: |
| </ | </ | ||
| - | This command will map remote port '' | + | This command will map remote port '' |
| <WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
| We can use another value than '' | We can use another value than '' | ||
| Ligne 116: | Ligne 120: | ||
| OLD URL proposed by Jupyter | OLD URL proposed by Jupyter | ||
| <code bash> | <code bash> | ||
| - | http://node4-21: | + | http://node3-70: |
| </ | </ | ||
| - | **Replace | + | **Replace |
| The new URL to use, from your browser | The new URL to use, from your browser | ||
| <code bash> | <code bash> | ||
| - | http://mesohelios1.univ-fcomte.fr: | + | http://mesoshared.univ-fcomte.fr: |
| </ | </ | ||