Skip to content

Instantly share code, notes, and snippets.

@yeongseon
Last active January 5, 2021 14:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeongseon/30c79a98b84e17db859f27aaff621580 to your computer and use it in GitHub Desktop.
Save yeongseon/30c79a98b84e17db859f27aaff621580 to your computer and use it in GitHub Desktop.
docker-compose.yml for kaggle/python-gpu-build
version: '2.3'
services:
kaggle:
image: kaggle/python-gpu-build
runtime: nvidia
container_name: kaggle
user: root
ports:
- "8888:8888"
volumes:
- ..:/notebooks
command: >
bash -c "
export LD_LIBRARY_PATH=/usr/local/cuda/lib64 &&
pip install tornado==4.5.3 &&
pip install jupyter_contrib_nbextensions &&
pip install jupyter_nbextensions_configurator &&
jupyter contrib nbextension install --user &&
jupyter nbextension enable toc2/main --user &&
jupyter notebook --notebook-dir=/notebooks --ip='*' --port=8888 --no-browser --allow-root --NotebookApp.token=''
"
@yeongseon
Copy link
Author

@yeongseon
Copy link
Author

yeongseon commented Apr 12, 2020

jupyterlab gpu dashboard

curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
bash nodesource_setup.sh

sudo apt-get install -y nodejs
pip install --upgrade jupyterlab

pip install jupyterlab-nvdashboard
jupyter labextension install jupyterlab-nvdashboard

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