Step 1: Launch Jupyter Lab from the Remote server with the command
$ jupyter-lab --no-browser --ip="0.0.0.0"
[I 2022-11-24 15:03:36.648 ServerApp] jupyterlab | extension was successfully linked.
[I 2022-11-24 15:03:36.711 ServerApp] nbclassic | extension was successfully linked.
[I 2022-11-24 15:03:37.783 ServerApp] notebook_shim | extension was successfully linked.
[I 2022-11-24 15:03:37.910 ServerApp] notebook_shim | extension was successfully loaded.
[I 2022-11-24 15:03:37.917 LabApp] JupyterLab extension loaded from /home/pi/.local/lib/python3.9/site-packages/jupyterlab
[I 2022-11-24 15:03:37.917 LabApp] JupyterLab application directory is /home/pi/.local/share/jupyter/lab
[I 2022-11-24 15:03:37.941 ServerApp] jupyterlab | extension was successfully loaded.
[I 2022-11-24 15:03:37.963 ServerApp] nbclassic | extension was successfully loaded.
[I 2022-11-24 15:03:37.965 ServerApp] Serving notebooks from local directory: /home/pi/Documents
Step 2: Open a browser window from your local machine and type Remote server's IP and Port
Step 3: Enter the session token
Step 4: You are connected!!
This guide runs JupyterLab on a remote server and reaches it from your laptop. Launching with --no-browser and binding the address lets the server accept outside connections.
For safety, prefer an SSH tunnel over exposing the port directly, and keep token authentication on. That way the notebook traffic stays encrypted and only you can reach it.

No comments:
Post a Comment
Note: Only a member of this blog may post a comment.