Skip to content

Instantly share code, notes, and snippets.

@yeongseon
Created April 11, 2020 03:22
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 yeongseon/01552589ef16000473e84c94e8eaf966 to your computer and use it in GitHub Desktop.
Save yeongseon/01552589ef16000473e84c94e8eaf966 to your computer and use it in GitHub Desktop.
docker-compose for kaggle/python
version: '2'
services:
kaggle:
image: kaggle/python
container_name: kaggle
user: root
ports:
- "8888:8888"
volumes:
- .:/notebooks
command: >
bash -c "
pip install jupyter_contrib_nbextensions &&
pip install jupyter_nbextensions_configurator &&
jupyter contrib nbextension install --user &&
jupyter notebook --allow-root --no-browser --ip="0.0.0.0" --notebook-dir=/notebooks --NotebookApp.token='' --allow-root
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment