Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| jupyterhub:custom_conda [2021/11/08 11:44] – admin | jupyterhub:custom_conda [2021/11/08 12:01] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 11: | Ligne 11: | ||
| * 1 GPU | * 1 GPU | ||
| * 20 GB memory | * 20 GB memory | ||
| - | * 2h walltime | + | * 2h walltime |
| - | * Interactive bash session | + | |
| <code bash> | <code bash> | ||
| Ligne 22: | Ligne 21: | ||
| <code bash> | <code bash> | ||
| $ module load anaconda | $ module load anaconda | ||
| + | </ | ||
| + | |||
| + | We create a new environment with a specific version of python. | ||
| + | |||
| + | <code bash> | ||
| + | $ conda create -y --prefix $WORK/meso1 python=3.7 | ||
| </ | </ | ||
| Ligne 74: | Ligne 79: | ||
| ... | ... | ||
| [I 15: | [I 15: | ||
| - | [I 15: | + | [I 15: |
| [I 15: | [I 15: | ||
| [I 15: | [I 15: | ||
| Ligne 82: | 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 89: | 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 115: | 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: |
| </ | </ | ||