Skip to content

Commit

Permalink
Upgrade Python 3.11 (jupyter#1844)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update test_python.py

* [TMP] Do not install numba

* test with spark 3.4 rc2

* Update Dockerfile

* install tf with pip in conda

* remove mamba install pip

* Update Dockerfile

---------

Co-authored-by: Ayaz Salikhov <[email protected]>
Co-authored-by: Ayaz Salikhov <[email protected]>
  • Loading branch information
3 people authored and kentwait committed Aug 3, 2023
1 parent b69794d commit 19e5694
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker-stacks-foundation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
USER ${NB_UID}

# Pin python version here, or set it to "default"
ARG PYTHON_VERSION=3.10
ARG PYTHON_VERSION=3.11

# Setup work directory for backward-compatibility
RUN mkdir "/home/${NB_USER}/work" && \
Expand Down
6 changes: 2 additions & 4 deletions tensorflow-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ LABEL maintainer="Jupyter Project <[email protected]>"
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Install Tensorflow
RUN mamba install --yes \
'tensorflow' && \
mamba clean --all -f -y && \
# Install Tensorflow with pip
RUN pip install --no-cache-dir tensorflow && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
2 changes: 1 addition & 1 deletion tests/docker-stacks-foundation/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from tests.conftest import TrackedContainer

LOGGER = logging.getLogger(__name__)
EXPECTED_PYTHON_VERSION = "3.10"
EXPECTED_PYTHON_VERSION = "3.11"


def test_python_version(container: TrackedContainer) -> None:
Expand Down

0 comments on commit 19e5694

Please sign in to comment.