Commit 161783f3 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Check on correct image

parent 5acbdffd
......@@ -21,14 +21,19 @@
"metadata": {},
"outputs": [],
"source": [
"# TensorFlow and tf.keras\n",
"import tensorflow as tf\n",
"\n",
"# Helper libraries\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"\n",
"print(tf.__version__)"
"# Preliminary checks to import Tensorflow\n",
"import os, sys\n",
"if 'tensorflow' not in os.environ.get('JUPYTER_IMAGE').lower():\n",
" print(\"Error: You need a tensorflow image to run this notebook!\", file=sys.stderr)\n",
"else: \n",
" # TensorFlow and tf.keras\n",
" import tensorflow as tf\n",
"\n",
" # Helper libraries\n",
" import numpy as np\n",
" import matplotlib.pyplot as plt\n",
"\n",
" print(f\"Great, your Tensorflow Version is {tf.__version__}\")"
]
},
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment