Skip to content

Commit 90224a7

Browse files
authored
Install latest tensorflow using pip (#2263)
* Install latest tensorflow using pip * Allow tensorflow test to warn * Fix another way
1 parent bd347e0 commit 90224a7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

images/tensorflow-notebook/cuda/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN mamba install --yes \
1919

2020
# Install TensorFlow, CUDA and cuDNN with pip
2121
RUN pip install --no-cache-dir \
22-
"tensorflow[and-cuda]<=2.17.1" && \
22+
'tensorflow[and-cuda]' && \
2323
fix-permissions "${CONDA_DIR}" && \
2424
fix-permissions "/home/${NB_USER}"
2525

tests/by_image/tensorflow-notebook/units/unit_tensorflow.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Copyright (c) Jupyter Development Team.
22
# Distributed under the terms of the Modified BSD License.
3+
import os
4+
import sys
5+
6+
if "NVIDIA_VISIBLE_DEVICES" in os.environ:
7+
print("Not running this test in GPU mode")
8+
sys.exit(0)
9+
310
import tensorflow as tf
411

512
print(tf.constant("Hello, TensorFlow"))

0 commit comments

Comments
 (0)