- Notifications
You must be signed in to change notification settings - Fork1k
Kaggle/docker-python
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Kaggle Notebooks allow users to run a Python Notebook in the cloud against our competitions and datasets without having to download data or set up their environment.
This repository includes theDockerfile for building the CPU-only and GPU image that runs Python Notebooks on Kaggle.
Our Python Docker images are stored on the Google Container Registry at:
First, evaluate whether installing the package yourself in your own notebooks suits your needs. Seeguide.
If you the first step above doesn't work for your use case,open an issue or apull request.
- Editkaggle_requirements.txt.
- Follow the instructions below to build a new image.
- Add tests for your new package. See thisexample.
- Follow the instructions below to test the new image.
- Open a PR on this repo and you are all set!
./build
Flags:
--gputo build an image for GPU.--use-cachefor faster iterative builds.
A suite of tests can be found under the/tests folder. You can run the test using this command:
./test
Flags:
--gputo test the GPU image.--pattern test_keras.pyor-p test_keras.pyto run a single test--image gcr.io/kaggle-images/python:ci-pretestor-i gcr.io/kaggle-images/python:ci-pretestto test against a specific image
For the CPU-only image:
# Run the image built locally:docker run --rm -it kaggle/python-build /bin/bash# Run the pre-built image from gcr.iodocker run --rm -it gcr.io/kaggle-images/python /bin/bash
For the GPU image:
# Run the image built locally:docker run --runtime nvidia --rm -it kaggle/python-gpu-build /bin/bash# Run the image pre-built image from gcr.iodocker run --runtime nvidia --rm -it gcr.io/kaggle-gpu-images/python /bin/bash
To ensure your container can access the GPU, follow the instructions postedhere.
About
Kaggle Python docker image
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.