Skip to content

Commit

Permalink
Update Python to v3.12.0
Browse files Browse the repository at this point in the history
- scipy: Temporarily remove numba
- scipy: Temporarily add libhdf5-dev
  - For h5py wheels
  • Loading branch information
benz0li committed Nov 23, 2023
1 parent 536a918 commit 8e5b52b
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 8 deletions.
26 changes: 24 additions & 2 deletions CUDA.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ cd base && docker build \
--build-arg BASE_IMAGE=ubuntu \
--build-arg BASE_IMAGE_TAG=22.04 \
--build-arg BUILD_ON_IMAGE=glcr.b-data.ch/cuda/python/ver \
--build-arg PYTHON_VERSION=3.11.6 \
--build-arg PYTHON_VERSION=3.12.0 \
--build-arg CUDA_IMAGE_FLAVOR=devel \
-t jupyterlab/cuda/python/base \
-f latest.Dockerfile .
Expand Down Expand Up @@ -165,7 +165,29 @@ current value of `${NB_UID}` and `${NB_GID}`.
The server logs appear in the terminal.
**Using Docker Desktop**
#### Using Podman (rootless mode, 3.11.6+)
Create an empty home directory:
```bash
mkdir "${PWD}/jupyterlab-root"
```
Use the following command to run the container as `root`:
```bash
podman run -it --rm \
--device 'nvidia.com/gpu=all' \
-p 8888:8888 \
-u root \
-v "${PWD}/jupyterlab-root":/home/root \
-e NB_USER=root \
-e NB_UID=0 \
-e NB_GID=0 \
IMAGE[:MAJOR[.MINOR[.PATCH]]] start-notebook.sh --allow-root
```
#### Using Docker Desktop
[Creating a home directory](#create-home-directory) *might* not be required.
Also
Expand Down
2 changes: 1 addition & 1 deletion CUDA_VERSION_MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Topmost entry = Tag `latest`

| Python | CUDA | cuBLAS | cuDNN | NCCL | TensorRT | Linux distro |
|:-----------|:-------|:----------|:------|:-------|:----------|:-------------|
| 3.11.6 | 11.8.0 | 11.11.3.6 | 8.9.6 | 2.15.5 | 8.5.3[^2] | Ubuntu 22.04 |
| 3.12.0 | 11.8.0 | 11.11.3.6 | 8.9.6 | 2.15.5 | 8.5.3[^2] | Ubuntu 22.04 |
| 3.11.5 | 11.8.0 | 11.11.3.6 | 8.9.0 | 2.15.5 | 8.5.3[^2] | Ubuntu 22.04 |
| 3.11.4 | 11.8.0 | 11.11.3.6 | 8.9.0 | 2.15.5 | 8.5.3[^2] | Ubuntu 22.04 |
| 3.10.13 | 11.8.0 | 11.11.3.6 | 8.9.0 | 2.15.5 | 8.5.3[^2] | Ubuntu 22.04 |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ To install docker, follow the instructions for your platform:

```bash
cd base && docker build \
--build-arg PYTHON_VERSION=3.11.6 \
--build-arg PYTHON_VERSION=3.12.0 \
-t jupyterlab/python/base \
-f latest.Dockerfile .
```
Expand Down
2 changes: 1 addition & 1 deletion VERSION_MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Topmost entry = Tag `latest`

| Python | Jupyter Hub | Jupyter Lab | code‑server (Code) | Git | Git LFS | Pandoc | CTAN date[^2] | Quarto[^2] | Linux distro |
|:-----------|:------------|:------------|:-------------------|:-------|:--------|:-------|:--------------|:------------|:-------------|
| 3.11.6 | 4.0.2 | 4.0.9 | 4.19.0 (1.84.2) | 2.43.0 | 3.4.0 | 3.1.1 | | 1.3.450 | Debian 12 |
| 3.12.0 | 4.0.2 | 4.0.9 | 4.19.0 (1.84.2) | 2.43.0 | 3.4.0 | 3.1.1 | | 1.3.450 | Debian 12 |
| 3.11.5 | 4.0.2 | 3.6.6 | 4.17.1 (1.82.2) | 2.42.0 | 3.4.0 | 3.1.1 | 2023‑10‑02 | 1.3.450 | Debian 12 |
| 3.11.4 | 4.0.2 | 3.6.5 | 4.16.1 (1.80.2) | 2.42.0 | 3.4.0 | 3.1.1 | 2023‑08‑24 | 1.3.450 | Debian 12 |
| 3.10.13 | 4.0.2 | 3.6.5 | 4.16.1 (1.80.2) | 2.42.0 | 3.4.0 | 3.1.1 | 2023‑08‑24 | 1.3.450 | Debian 12 |
Expand Down
2 changes: 1 addition & 1 deletion base/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.env:
variables:
PYTHON_VERSION: "3.11.6"
PYTHON_VERSION: "3.12.0"

.before-script-build: &before-script-build
- |
Expand Down
2 changes: 1 addition & 1 deletion scipy/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.env:
variables:
PYTHON_VERSION: "3.11.6"
PYTHON_VERSION: "3.12.0"

.before-script-build: &before-script-build
- |
Expand Down
4 changes: 3 additions & 1 deletion scipy/latest.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
librsvg2-bin \
qpdf \
texinfo \
## For h5py wheels
libhdf5-dev \
## Install quarto
&& curl -sLO https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-${dpkgArch}.tar.gz \
&& mkdir -p /opt/quarto \
Expand Down Expand Up @@ -102,7 +104,7 @@ RUN dpkgArch="$(dpkg --print-architecture)" \
ipympl\
ipywidgets \
matplotlib \
numba \
#numba \
numexpr \
numpy \
pandas \
Expand Down

0 comments on commit 8e5b52b

Please sign in to comment.