# docker-python
[Kaggle Notebooks](https://www.kaggle.com/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 the [Dockerfile](Dockerfile.tmpl) 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:
* CPU-only: [gcr.io/kaggle-images/python](https://gcr.io/kaggle-images/python)
* GPU: [gcr.io/kaggle-gpu-images/python](https://gcr.io/kaggle-gpu-images/python)
## Requesting new packages
First, evaluate whether installing the package yourself in your own notebooks suits your needs. See [guide](https://github.com/Kaggle/docker-python/wiki/Missing-Packages).
If you the first step above doesn't work for your use case, [open an issue](https://github.com/Kaggle/docker-python/issues/new) or a [pull request](https://github.com/Kaggle/docker-python/pulls).
## Opening a pull request
1. Edit the [Dockerfile](Dockerfile.tmpl).
1. Follow the instructions below to build a new image.
1. Add tests for your new package. See this [example](https://github.com/Kaggle/docker-python/blob/main/tests/test_fastai.py).
1. Follow the instructions below to test the new image.
1. Open a PR on this repo and you are all set!
## Building a new image
```sh
./build
```
Flags:
* `--gpu` to build an image for GPU.
* `--use-cache` for faster iterative builds.
## Testing a new image
A suite of tests can be found under the `/tests` folder. You can run the test using this command:
```sh
./test
```
Flags:
* `--gpu` to test the GPU image.
* `--pattern test_keras.py` or `-p test_keras.py` to run a single test
* `--image gcr.io/kaggle-images/python:ci-pretest` or `-i gcr.io/kaggle-images/python:ci-pretest` to test against a specific image
## Running the image
For the CPU-only image:
```sh
# Run the image built locally:
docker run --rm -it kaggle/python-build /bin/bash
# Run the pre-built image from gcr.io
docker run --rm -it gcr.io/kaggle-images/python /bin/bash
```
For the GPU image:
```sh
# 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.io
docker run --runtime nvidia --rm -it gcr.io/kaggle-gpu-images/python /bin/bash
```
To ensure your container can access the GPU, follow the instructions posted [here](https://github.com/Kaggle/docker-python/issues/361#issuecomment-448093930).
没有合适的资源?快使用搜索试试~ 我知道了~
Kaggle Python docker 镜像.zip
共191个文件
py:132个
txt:6个
dockerfile:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 98 浏览量
2024-11-23
12:41:58
上传
评论
收藏 11.81MB ZIP 举报
温馨提示
aKaggle Python docker 镜像docker-pythonKaggle Notebooks允许用户在云端运行 Python Notebook 来对抗我们的竞赛和数据集,而无需下载数据或设置环境。该存储库包含用于构建在 Kaggle 上运行 Python Notebooks 的仅 CPU 和 GPU 映像的Dockerfile 。我们的 Python Docker 镜像存储在 Google Container Registry 中仅限 CPUgcr.io/kaggle-images/pythonGPUgcr.io/kaggle-gpu-images/python请求新包首先,评估在您自己的笔记本中自行安装该包是否适合您的需求。请参阅指南。如果上述第一步不适合您的用例,请打开问题或提出拉取请求。打开拉取请求编辑Dockerfile。按照以下说明构建新图像。为你的新包添加测试。请参阅此示例。按照以下说明测试新图像。在这个 repo 上打开一个 PR,一切就绪了!树立新形象./build标志--gpu为 GPU 构建图像。
资源推荐
资源详情
资源评论
收起资源包目录
Kaggle Python docker 镜像.zip (191个子文件)
build 2KB
build 1KB
build_package 4KB
train.csv 184KB
lgb_test.csv 17KB
lgb_train.csv 17KB
fifa_2018_stats.csv 12KB
variables.data-00000-of-00001 2KB
diff 3KB
Dockerfile 5KB
torch.Dockerfile 3KB
jaxlib.Dockerfile 1KB
lightgbm.Dockerfile 1KB
dev.Dockerfile 1KB
Dockerfile 336B
feather-0_3_1.feather 672B
.gitignore 43B
model.tar.gz 8KB
variables.index 895B
jupyter_tensorboard.ipynb 1KB
notebook.ipynb 644B
Jenkinsfile 9KB
face.jpg 36KB
config.json 3KB
tokenizer.json 547B
config.json 507B
template_conf.json 285B
metadata.json 139B
metadata.json 138B
LICENSE 11KB
README.md 2KB
feature_request.md 525B
bug_report.md 348B
README.md 0B
mnist.npz 10.96MB
mnist-8.onnx 26KB
saved_model.pb 44KB
keras_metadata.pb 5KB
test.pdf 18KB
english.png 1.66MB
dot.png 150B
push 2KB
kaggle_gcp.py 16KB
test_user_secrets.py 10KB
test_bigquery.py 7KB
test_datasets.py 7KB
test_automl.py 6KB
test_translation.py 6KB
kaggle_secrets.py 5KB
log.py 5KB
test_kaggle_module_resolver.py 5KB
sitecustomize.py 4KB
test_user_session.py 4KB
test_bigquery_proxy.py 3KB
test_video_intelligence.py 3KB
kaggle_web_client.py 3KB
test_tensorflow.py 3KB
test_natural_language.py 3KB
test_vision.py 3KB
test_lightgbm.py 2KB
test_keras.py 2KB
test_dipy.py 2KB
kagglehub.py 2KB
test_gcs.py 2KB
test_google_generativeai_patch.py 2KB
test_pytorch_lightning.py 2KB
notebook.py 2KB
kaggle_datasets.py 2KB
test_flax.py 2KB
test_google_generativeai_patch_disabled.py 2KB
test_datashader.py 2KB
test_plotly_express.py 1KB
pip_list_versions.py 1KB
test_keras_tuner.py 1KB
test_pytorch.py 1KB
kaggle_module_resolver.py 1KB
test_numba.py 1KB
test_jupyterlab_lsp.py 1KB
test_jupyter_nbconvert.py 1KB
test_fastai.py 996B
test_transformers.py 986B
keras_internal.py 981B
test_torchvision.py 905B
test_ucaip.py 894B
test_bayes_opt.py 882B
test_xgboost.py 862B
test_easyocr.py 849B
test_jupytertensorboard.py 809B
test_numpy.py 802B
kaggle_session.py 787B
test_keras_cv.py 779B
keras_internal_test.py 766B
common.py 738B
test_opencv.py 735B
test_geopandas.py 680B
test_keras_nlp.py 652B
test_cudf.py 646B
test_hf_datasets.py 626B
test_python_lsp_server.py 620B
test_tensorflow_bigquery.py 584B
共 191 条
- 1
- 2
资源评论
徐浪老师
- 粉丝: 8636
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 硬件开发中HDL与嵌入式系统的代码实现及应用
- Python参考手册中文完整版(Python3.13.1)
- 糖尿病预测合成数据集,合成患者记录集合,适用于机器学习与健康研究
- 全国计算机技术与软件专业技术资格考试(软考)备考攻略及经验分享
- 从零构建大模型,小白指南
- H330刷机固件包及工具包
- DedeBIZ资源系统源码 高仿XDGAME模板源码主程序+模板
- 从零开始学模拟电子技术
- 小白入门AIagent指南
- Python多平台环境配置与使用手册
- 私用SunnyUI控件编写的一个简易工厂老化监控程序
- 阑尾癌阑尾炎预测数据集,全球25国26万个体临床与生活方式数据集:支持阑尾癌诊断与风险预测的医疗研究
- Proteus 8.1 软件安装包下载
- 2025最新唯美社区StarFree源码.zip
- 远程ssh远程控制终端工具
- java 开发工具安装包2019.2.3 x64. idea安装包
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功