Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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] – adminjupyterhub: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
 +</code>
 +
 +We create a new environment with a specific version of python.
 +
 +<code bash>
 +$ conda create -y --prefix $WORK/meso1 python=3.7
 </code> </code>
  
Ligne 74: Ligne 79:
 ... ...
 [I 15:24:14.851 NotebookApp] Jupyter Notebook 6.1.4 is running at: [I 15:24:14.851 NotebookApp] Jupyter Notebook 6.1.4 is running at:
-[I 15:24:14.851 NotebookApp] http://node4-21:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23+[I 15:24:14.851 NotebookApp] http://node3-70:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23
 [I 15:24:14.851 NotebookApp]  or http://127.0.0.1:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23 [I 15:24:14.851 NotebookApp]  or http://127.0.0.1:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23
 [I 15:24:14.851 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [I 15:24:14.851 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Ligne 82: Ligne 87:
         file:///Work/Users/kmazouzi/.jupyter/runtime/nbserver-42070-open.html         file:///Work/Users/kmazouzi/.jupyter/runtime/nbserver-42070-open.html
     Or copy and paste one of these URLs:     Or copy and paste one of these URLs:
-        http://node4-21:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23+        http://node3-70:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23
      or http://127.0.0.1:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23      or http://127.0.0.1:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23
 (meso1)$  (meso1)$ 
Ligne 89: Ligne 94:
  There are three important pieces of information, above, to remember:  There are three important pieces of information, above, to remember:
  
-  *     The node used by Slurm, here **node4-21**+  *     The node used by SGE, here **node3-70**
   *     The port picked by Jupyter-nootbook, here **8888**   *     The port picked by Jupyter-nootbook, here **8888**
   *     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.
 </WRAP> </WRAP>
  
 ====== SSH tunnel ====== ====== SSH tunnel ======
-We need to establish a tunnel from ''mesohelios1'' to this node (node4-21). +We need to establish a tunnel from ''mesoshared'' to this node (node3-70). 
  
-From a new terminal on ''mesohelios1'':+From a new terminal on ''mesoshared'':
 <code bash> <code bash>
-$ ssh -g  -N -L 9999:localhost:8888 kmazouzi@node4-21+$ ssh -g  -N -L 9999:localhost:8888 kmazouzi@node3-70
 </code> </code>
  
-This command will map remote port ''8888'' from ''node4-21'' to local port ''9999'' in ''mesohelios1'' (''localhost'').\\+This command will map remote port ''8888'' from ''node3-70'' to local port ''9999'' in ''mesoshared'' (''localhost'').\\
 <WRAP center round tip 60%> <WRAP center round tip 60%>
 We can use another value than ''9999'' for local port We can use another value than ''9999'' for local port
Ligne 115: Ligne 120:
 OLD URL proposed by Jupyter OLD URL proposed by Jupyter
 <code bash> <code bash>
-  http://node4-21:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23\\+  http://node3-70:8888/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23\\
 </code> </code>
  
-**Replace   ''node4-21:8888'' by ''mesohelios1.univ-fcomte.fr:9999''**+**Replace   ''node3-70:8888'' by ''mesoshared.univ-fcomte.fr:9999''**
  
 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:9999/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23+  http://mesoshared.univ-fcomte.fr:9999/?token=a70aba5da2392737bea00f1225d8b62c7a45219ac3fb4f23
 </code> </code>
  
  • jupyterhub/custom_conda.1636371859.txt.gz
  • Dernière modification : 2021/11/08 11:44
  • de admin