Skip to content

Commit c19936c

Browse files
committed
Clenup documentaion files
1 parent 7954ecb commit c19936c

File tree

3 files changed

+37
-28
lines changed

3 files changed

+37
-28
lines changed

ir/ir-base/readme.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# Quick reference
2-
* Mantained by: [Deepnote](https://deepnote.com/)
1+
# Quick Reference
2+
- **Maintained by**: [Deepnote](https://deepnote.com/)
33

4+
## IR Tags
5+
- [`4.0.3`, `4.2.0`]
46

5-
## IR tags
6-
[`4.0.3`, `4.2.0`]
7+
## What is Deepnote IR?
8+
Deepnote IR provides official Docker images that are pre-configured for use on [Deepnote](https://deepnote.com). These images include the R programming language installed in specific versions, along with the [IRkernel](https://github.com/IRkernel/IRkernel), which is an R kernel for Jupyter.
79

10+
These images are designed to facilitate seamless integration with Deepnote's platform, allowing users to leverage R for data analysis and visualization within Jupyter notebooks. If you find that the provided images do not meet all your requirements, you are encouraged to extend them by building your own custom images on top of these bases.
811

9-
## What is Deepnote IR ?
12+
## How to Customize Your Image
13+
To create a custom Docker image based on Deepnote's IR images, you can use the following example Dockerfile:
1014

11-
This repository contains official Deepnote IR images that are ready to use in deepnote.com. The image is composed of the R installation in the correct version and the installed R Jupyter kernel https://github.com/IRkernel/IRkernel.
12-
13-
If you are missing something in this image, feel free to build your own on top of this and customize it to your needs.
14-
15-
## Create your own on top of our base
16-
17-
```
15+
```dockerfile
1816
FROM deepnote/ir:4.2.0
1917

2018
RUN R -e "install.packages('tidyverse', repos='https://cloud.r-project.org', dependencies=TRUE)"
21-
2219
```
2320

24-
## Image Variants
21+
This example demonstrates how to build upon the `deepnote/ir:4.2.0` image by installing the tidyverse package, a collection of R packages designed for data science. You can modify this Dockerfile to include other R packages or configurations as needed.
22+
23+
# Additional Information
24+
These images serve as a robust foundation for R-based data science projects within Deepnote, providing the necessary tools and libraries to get started quickly. For more detailed information about Deepnote and how these images can enhance your data science workflows, please visit Deepnote's website.
2525

python/datascience/Dockerfile.datascience

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ FROM deepnote/python:${PYTHON_VERSION}${CIRCLE_PULL_REQUEST:+-ra-${CIRCLE_PULL_R
55
# Add the requirements files
66
ADD requirements-3.11+.txt /requirements-3.11+.txt
77
ADD requirements-below-3.11.txt /requirements-below-3.11.txt
8-
ADD constraints.txt /constraints.txt
98

109
#Determine the Python version and set the version-specifications file
1110
ARG PYTHON_VERSION
@@ -20,7 +19,7 @@ RUN if [ "$(printf '%s\n' "$PYTHON_VERSION" "3.11" | sort -V | head -n1)" = "3.1
2019
# Combine all RUN commands into one to minimize the number of layers
2120
RUN apt-get update \
2221
&& apt-get install -y --no-install-recommends gcc \
23-
&& pip install --no-cache-dir -r requirements.txt -c tk.deepnote.com/constraints${PYTHON_VERSION}.txt \
22+
&& pip install --no-cache-dir -r requirements.txt -c https://tk.deepnote.com/constraints${PYTHON_VERSION}.txt \
2423
&& apt-get purge -y gcc \
2524
&& apt-get autoremove -y \
2625
&& apt-get clean \

python/readme.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
1-
# Quick reference
2-
* Maintained by: [Deepnote](https://deepnote.com/)
1+
# Quick Reference
2+
- **Maintained by**: [Deepnote](https://deepnote.com/)
33

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)
67

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.
710

8-
## How to use this image
11+
# How to Use This Image
912

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:
1115

16+
```dockerfile
17+
ARG PYTHON_VERSION=3.9
18+
FROM deepnote/python:$PYTHON_VERSION
1219

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
1722

1823
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.
2028

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

Comments
 (0)