You can press shift + enter to quickly advance through each line of a notebook. Try it!

Check that you have a recent version of TensorFlow installed, v1.2.0 or higher.


In [9]:
import tensorflow as tf
print("Expected version is 1.2.0 or higher")
print("You have version %s" % tf.__version__)


Expected version is 1.2.0 or higher
You have version 1.2.0

Check if Matplotlib is working. After running this cell, you should see a plot appear below.


In [10]:
%matplotlib inline
import pylab
import numpy as np

# create some data using numpy. y = x * 0.1 + 0.3 + noise
x = np.random.rand(100).astype(np.float32)
noise = np.random.normal(scale=0.01, size=len(x))
y = x * 0.1 + 0.3 + noise

# plot it
pylab.plot(x, y, '.')


Out[10]:
[<matplotlib.lines.Line2D at 0x7f7487e5a310>]

Check if Numpy and Pillow are working. After runnign this cell, you should see a random image appear below.


In [11]:
import PIL.Image as Image
import numpy as np
from matplotlib.pyplot import imshow

image_array = np.random.rand(200,200,3) * 255
img = Image.fromarray(image_array.astype('uint8')).convert('RGBA')
imshow(np.asarray(img))


Out[11]:
<matplotlib.image.AxesImage at 0x7f748659b210>

Check if Pandas is working. After running this cell, you should see a table appear below.


In [12]:
import pandas as pd
names = ['Bob','Jessica','Mary','John','Mel']
births = [968, 155, 77, 578, 973]
BabyDataSet = list(zip(names,births))
pd.DataFrame(data = BabyDataSet, columns=['Names', 'Births'])


Out[12]:
Names Births
0 Bob 968
1 Jessica 155
2 Mary 77
3 John 578
4 Mel 973

That's it! You're ready to start the workshop :D