Skip to content

Instantly share code, notes, and snippets.

@yang-zhang
Last active July 2, 2019 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yang-zhang/2abe2ae854af2f31fd88c41ea6da2af3 to your computer and use it in GitHub Desktop.
Save yang-zhang/2abe2ae854af2f31fd88c41ea6da2af3 to your computer and use it in GitHub Desktop.
kjupyter
kjupyter() {
docker run --runtime=nvidia --ipc=host -v $PWD:/tmp/working -v /data:/tmp/working/data -w=/tmp/working -p 8888:8888 --rm -it kaggle/python-gpu-build bash -c "pip install tornado==4.5.3; export LD_LIBRARY_PATH=/usr/local/cuda/lib64; 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=/tmp/working --ip='*' --port=8888 --no-browser --allow-root"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment