Skip to content

Instantly share code, notes, and snippets.

@jaredyam
Last active August 22, 2023 04:50
Show Gist options
  • Save jaredyam/21097b5d438b937af1c5dffef64402b8 to your computer and use it in GitHub Desktop.
Save jaredyam/21097b5d438b937af1c5dffef64402b8 to your computer and use it in GitHub Desktop.
Steps to access your remote Jupyter Notebook from macOS to Windows subsystem linux.

client side

  1. ssh your remote server: ssh username@serverip;

server side

  1. source a Python environment which has the Jupyter installed;
  2. execute:
    $ jupyter notebook --no-browser --port=8889 --NotebookApp.allow_origin="*" --ip=serverip --NotebookApp.token='' 

client side

  1. port forwarding:

    $ ssh -N -f -L localhost:8888:serverip:8889 username@serverip
  2. access the remote notebook from a web application (e.g. safari):

    $ open -a safari http://localhost:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment