Connecting to Jupyterlab - UTMediaCAT/mediacat-docs GitHub Wiki

Connecting to JupyterLab

Windows

Software

  • Install Mobaxterm Here
  • choose the installer edition

Generating ssh keys

Tunneling

  • Once you've generated your ssh keys click Tunneling then click New SSH tunnel
  • for <Forwarded port> enter 8888
  • for <SSH server> enter the ip address in the google doc below
  • for <SSH login> enter root
  • for <SSH port> enter 22 or you can leave blank
  • for <Remote server> enter 127.0.0.1
  • for <Remote port> enter 8888
  • finally click save
  • you can change the name to something like jupyterlab so its easer to remeber what it is
  • Lastly, click the start button to begin tunneling

Jupyter in the browser

  • Use Chrome or Firefox for this
  • go to http://127.0.0.1:8888/lab?token=
  • after the = put the token found in the google doc below. This will change whenever the server is restarted
  • If Jupyter notebooks loads, congrats you've done it!
  • Tip: you can bookmark http://127.0.0.1:8888 for easy access the next time. The token is only required on the first time.

Linux and mac

Generating ssh keys

  • run ssh keygen and come up with a passphrase
  • Give your public key to someone who has access to graham or where ever the jupyter lab server is located

Tunneling

  • run ssh -L 8888:127.0.0.1:8888 root@[ip address]
    • replace [ip address] with the ip in the google doc below
    • you will be prompted for your ssh key passphrase

Jupyter in the browser

  • follow the same steps as in the windows section

Google Doc

⚠️ **GitHub.com Fallback** ⚠️