Mantén la atención porque en este escrito encontrarás el hallazgo que buscas.Este artículo ha sido aprobado por nuestros expertos para garantizar la calidad y veracidad de nuestro contenido.
Ejemplo: jupyter en servidor remoto
0. [remote] move to the desired folder (root of the future jupyter server)1. [remote][optional] create a screenfor the server,
so you can close the remote terminal and jupyter will keep running
screen -S jupyter
2. [remote] start jupyter, with no browser, on port RRRR
jupyter notebook --no-browser --port=RRRR
3. [remote]look at the output and take note of the token in
http://localhost:RRRR/?token=07994b9f01b2bb2ff3bd6a0fdef2c1294863165c7ba9c6b4
4. [remote][optional] detatch from screen
Ctrl+A, D
5. [local] on terminal, connect local port LLLL to remote port RRRR
ssh -NfL localhost:LLLL:localhost:RRRR [email protected](type password for[email protected])6. [local]open browser on page "localhost:LLLL"
you will see the login page for jupyter
type the token from step 3.
NOTES:
If possible RRRR = LLLL =8888, makes everything easier
Do NOT close the local terminal until you are done
Local terminal might disconnect the ports some times: just repeat step 5.
[optional] Remember to exit the screen on remote once you are done
Puedes añadir valor a nuestro contenido informacional cooperando tu experiencia en las acotaciones.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)