Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PratyushTripathy/f94df07f0ed0c188ed0ed3f6d59745b5 to your computer and use it in GitHub Desktop.
Save PratyushTripathy/f94df07f0ed0c188ed0ed3f6d59745b5 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