Skip to content

Instantly share code, notes, and snippets.

@moosetraveller
Created August 12, 2021 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moosetraveller/bef1761c3209e2aa1d0ac9804002d73b to your computer and use it in GitHub Desktop.
Save moosetraveller/bef1761c3209e2aa1d0ac9804002d73b to your computer and use it in GitHub Desktop.
Run Jupyter on a Remote Computer

Run Jupyter on a Remote Computer

If you run Jupyter on a remote computer, you could start Jupyter with --ip 0.0.0.0 and access with the remote computer's IP address. However, this leaves your data wide open to anyone in the internet.

Alternatively, you could also use SSH Port Forwarding:

  1. Start Jupyter on the remote computer with
    jupyter notebook --no-browser --port=XXXX
  2. Enable port forwarding on your local machine with
    ssh -N -f -L localhost:YYYY:localhost:XXXX remoteuser@remotehost
  3. Simply access Jupyter Lab on your local machine with http://localhost:XXXX

See also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment