Skip to content

Instantly share code, notes, and snippets.

@beratkurar
Last active September 16, 2018 07:52
Show Gist options
  • Save beratkurar/8e75be294fb99125f7f93cb03c19a0af to your computer and use it in GitHub Desktop.
Save beratkurar/8e75be294fb99125f7f93cb03c19a0af to your computer and use it in GitHub Desktop.
Connect to a Jupyter notebook that runs on a docker container in Ben-Gurion University deep learning server.

Followings are the steps to run a Jupyter notebook on a docker container in Ben-Gurion University deep learning server csdlsrv1 and then to connect to it using a local browser.

  1. In csdlsrv1:
nvidia-docker run -it -p 8080:8080 --name <ContainerName> dl-image bash
  1. In container:
jupyter notebook --no-browser --port=8080
  1. In local:
ssh -f lvs.cs.bgu.ac.il -L 8080:csdlsrv1:8080 -N
  1. In local:

Open a browser and connect to the address: localhost:8080

Useful links

Installing Python Packages from a Jupyter Notebook

Docker for Data Science

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