|
1 | | -# Quick reference |
2 | | - * Maintained by: [Deepnote](https://deepnote.com/) |
| 1 | +# Quick Reference |
| 2 | +- **Maintained by**: [Deepnote](https://deepnote.com/) |
3 | 3 |
|
4 | | -## Python image |
5 | | -* [`3.8`, `3.9`, `3.10`, `3.11`](https://github.com/deepnote/environments/tree/main/python/python) |
| 4 | +# Supported Tags and Respective Dockerfile Links |
| 5 | +- [`3.8`, `3.9`, `3.10`, `3.11`](https://github.com/deepnote/environments/tree/main/python/python) |
| 6 | +- [`3.8-datascience`, `3.9-datascience`, `3.10-datascience`, `3.11-datascience`](https://github.com/deepnote/environments/blob/main/python/datascience/Dockerfile.datascience) |
6 | 7 |
|
| 8 | +# What is Deepnote Python? |
| 9 | +Deepnote Python is a set of Docker images tailored for use in the Deepnote platform. These images are based on the official [Python Docker images](https://hub.docker.com/_/python) and include additional binaries and configurations to enhance the user experience within Deepnote. They are designed to simplify development workflows, especially for data science projects, by providing pre-configured environments that are ready to use. |
7 | 10 |
|
8 | | -## How to use this image |
| 11 | +# How to Use This Image |
9 | 12 |
|
10 | | -### Create a Dockerfile in your Deepnote project |
| 13 | +## Create Custom Dockerfile for Deepnote Use |
| 14 | +To create a custom Dockerfile using Deepnote's Python image, you can start with the following template: |
11 | 15 |
|
| 16 | +```dockerfile |
| 17 | +ARG PYTHON_VERSION=3.9 |
| 18 | +FROM deepnote/python:$PYTHON_VERSION |
12 | 19 |
|
13 | | -``` |
14 | | -FROM deepnote/python:3.9 |
15 | | -
|
16 | | -WORKDIR /usr/src/app |
| 20 | +#Determine the Python version and set the version-specifications file |
| 21 | +ARG PYTHON_VERSION |
17 | 22 |
|
18 | 23 | COPY requirements.txt ./ |
19 | | -RUN pip install --no-cache-dir -r requirements.txt |
| 24 | +RUN pip install --no-cache-dir -r requirements.txt -c https://tk.deepnote.com/constraints${PYTHON_VERSION}.txt |
| 25 | +``` |
| 26 | + |
| 27 | +This Dockerfile uses the `deepnote/python:3.9` image as a base and installs Python packages specified in requirements.txt. The use of constraints from `https://tk.deepnote.com/constraints<python_version>.txt` ensures compatibility and stability of package installations. |
20 | 28 |
|
21 | | -``` |
| 29 | +# Additional Information |
| 30 | +These images are intended to serve as a starting point for creating reproducible and scalable data science environments in Deepnote. They include various utilities and binaries that streamline workflows, such as Jupyter support, data visualization tools, and more. |
| 31 | +For more information about Deepnote and how these images can be used to enhance your data science projects, visit Deepnote's website. |
0 commit comments