You'll be able to click and run the code cell, live in the presentation!
# Here are our imports (press shift+enter) import numpy as np import matplotlib.pyplot as plt plt.ion()
Now we'll generate some data and make a plot! Run the cell below...
data = np.random.randn(2, 500) sizes = np.abs(data) fig, ax = plt.subplots() ax.scatter(*data, s=sizes * 100, c=sizes, cmap=plt.cm.viridis, vmin=-3, vmax=3) ax.set(title="Wow, such plot. So scatter. Much viridis.") ax.set_axis_off()
You can even change the code and update the plot in real-time!
Let's see what these notebooks look like...