This is a notebook

This is also a markdown cell


In [1]:
# This is a code cell
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd

In [2]:
# I'm using this code cell for a setting
# This one's called a "magic." That's neat.
%matplotlib inline

In [5]:
# It has its pros and cons
length = 1000
data = [str(x) for x in np.random.randint(5000,size=(length,))]
domain = list(range(length))
n=5
print(f'First {n} values of {len(data)}: {data[:n]}')


First 5 values of 1000: ['4500', '3122', '1795', '2205', '2343']
CPU times: user 2.82 ms, sys: 820 µs, total: 3.64 ms
Wall time: 3.14 ms

In [6]:
# But here's a plot
plt.xkcd()
plt.figure(figsize=(15,10),facecolor='white')
plt.title('This was random.')
plt.scatter(domain, data)
plt.show()



In [ ]: