wiki:computo:jupyternotebook
Diferencias
Muestra las diferencias entre dos versiones de la página.
| Próxima revisión | Revisión previaAmbos lados, revisión siguiente | ||
| wiki:computo:jupyternotebook [2021/12/15 16:13] 127.0.0.1 editor externo | wiki:computo:jupyternotebook [2022/10/04 13:48] (actual) srgualpa [Conexión con Sersic] | ||
|---|---|---|---|
| Línea 1: | Línea 1: | ||
| ====== Jupyter notebook ====== | ====== Jupyter notebook ====== | ||
| + | |||
| ===== Conexión con Sersic ===== | ===== Conexión con Sersic ===== | ||
| Línea 8: | Línea 9: | ||
| < | < | ||
| vi $HOME/ | vi $HOME/ | ||
| + | </ | ||
| + | |||
| + | Configuración de PC fuera de la red interna del IATE con Proxycommand | ||
| + | < | ||
| Host iate | Host iate | ||
| HostName iate.oac.uncor.edu | HostName iate.oac.uncor.edu | ||
| - | User @nombre_usuario | + | User tu_usuario |
| + | ForwardAgent yes | ||
| + | |||
| + | Host sersic | ||
| + | HostName sersic | ||
| + | User tu_usuario | ||
| + | ProxyCommand ssh iate -W %h:%p | ||
| + | |||
| + | Host alumnos01 | ||
| + | User tu_usuario | ||
| + | hostname alumnos01.oac.uncor.edu | ||
| + | ForwardAgent yes | ||
| + | |||
| + | Host alumnos02 | ||
| + | User tu_usuario | ||
| + | hostname alumnos02.oac.uncor.edu | ||
| ForwardAgent yes | ForwardAgent yes | ||
| </ | </ | ||
| + | Configuración de PC fuera de la red interna del IATE con proxyjump | ||
| < | < | ||
| + | |||
| + | Host iate | ||
| + | HostName iate.oac.uncor.edu | ||
| + | User tu_usuario | ||
| + | ForwardAgent yes | ||
| + | |||
| Host sersic | Host sersic | ||
| HostName sersic | HostName sersic | ||
| - | User @nombre_usuario | + | User tu_usuario |
| - | | + | |
| + | |||
| + | Host alumnos01 | ||
| + | User tu_usuario | ||
| + | hostname alumnos01.oac.uncor.edu | ||
| + | ForwardAgent yes | ||
| + | |||
| + | Host alumnos02 | ||
| + | User tu_usuario | ||
| + | hostname alumnos02.oac.uncor.edu | ||
| + | ForwardAgent yes | ||
| </ | </ | ||
| - | **2. Desde tu PC. Crear un puente a sersic ** | + | |
| + | |||
| + | Configuración de PC en red interna del IATE | ||
| < | < | ||
| + | |||
| + | Host sersic | ||
| + | User tu_usuario | ||
| + | ForwardAgent yes | ||
| + | |||
| + | Host alumnos01 | ||
| + | User tu_usuario | ||
| + | hostname alumnos01.oac.uncor.edu | ||
| + | ForwardAgent yes | ||
| + | |||
| + | Host alumnos02 | ||
| + | User tu_usuario | ||
| + | hostname alumnos02.oac.uncor.edu | ||
| + | ForwardAgent yes | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | **2. Desde tu PC.** | ||
| + | < | ||
| + | Para Sersic | ||
| ssh -L 9001: | ssh -L 9001: | ||
| + | |||
| + | Para Mirta3 | ||
| + | ssh -L 9002: | ||
| + | |||
| + | Para alumnos01 | ||
| + | ssh -L 9003: | ||
| + | |||
| + | Para alumnos02 | ||
| + | ssh -L 9004: | ||
| </ | </ | ||
| - | **3. Desde sersic. Crear la notebook ** | + | |
| + | **3. Desde el servidor. Crear la notebook ** | ||
| < | < | ||
| + | para sersic | ||
| jupyter notebook --no-browser --ip=sersic --port=9001 | jupyter notebook --no-browser --ip=sersic --port=9001 | ||
| + | |||
| + | para mirta3 | ||
| + | jupyter notebook --no-browser --ip=mirta3 --port=9002 | ||
| + | |||
| + | para alumnos01 | ||
| + | jupyter notebook --no-browser --port=9003 | ||
| + | |||
| + | para alumnos02 | ||
| + | jupyter notebook --no-browser --port=9004 | ||
| </ | </ | ||
| + | |||
| + | |||
| {{ : | {{ : | ||
| Línea 50: | Línea 133: | ||
| Desde un navegador pones como dirección [[http:// | Desde un navegador pones como dirección [[http:// | ||
| + | |||
| + | <JS> | ||
| + | var acc = document.getElementsByClassName(" | ||
| + | var i; | ||
| + | |||
| + | for (i = 0; i < acc.length; i++) { | ||
| + | acc[i].addEventListener(" | ||
| + | this.classList.toggle(" | ||
| + | var panel = this.nextElementSibling; | ||
| + | if (panel.style.display === " | ||
| + | panel.style.display = " | ||
| + | } else { | ||
| + | panel.style.display = " | ||
| + | } | ||
| + | }); | ||
| + | } | ||
| + | </JS> | ||
wiki/computo/jupyternotebook.1639584834.txt.gz · Última modificación: 2021/12/15 16:13 por 127.0.0.1