Skip to content

saint1991/cuda-jupyter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cuda-jupyter

Jupyter notebook images with CUDA9.0 and cuDNN7.

NOTE This image is intended to use in development or personal use. Only single user use is supported for now.

Execute

docker run -p=8888:8888 saint1991/cuda-jupyter

The jupyter notebook is started on port 8888 as default.

Persist data

To persist you should attach external persistent volume and set the environment variable JUPYTER_NOTEBOOK_DIR to point a directory on the attached volume.

docker run -p=8888:8888 -v=$ATTACHED_DIR:/home/jupyter/data -e=JUPYTER_NOTEBOOK_DIR=/home/jupyter/data saint1991/cuda-jupyter

Password

As default jupyter is used for a login password but you can configure it via the environment variable JUPYTER_PASSWORD.

See here for more details.

Install packages on notebook

This image runs a container as the user jupyter but NOT root for security reasons. So you should install packages as follows on a notebook:

!pip3 install --user $some_package

The directory of user sites seems not to be included in the PATH as default. Following script somehow corrects it.

import site
site.addsitedir(site.USER_SITE)

License

This image is Open Source and available under the MIT License.

About

Jupyter notebook image with CUDA9.0 and cuDNN7

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages