#!/usr/bin/env python # coding: utf-8 # # Welcome to the Binder-RISE demo # Press `space` to move to the next sub- slide... # ## Press it again to be taken to a code cell # # You'll be able to click and run the code cell, live in the presentation! # In[ ]: # 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... # In[ ]: data = np.random.randn(2, 500) sizes = np.abs(data[1]) 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... # # github.com/binder-examples/requirements # github.com/binder-examples/jupyterlab # # And that's it! # # If you want to learn more about the RISE plugin, check out [the RISE documentation](https://damianavila.github.io/RISE). # # If you want to go backwards, hit `shift + space`. Or click the `X` in the top left to go back to the notebook interface. # # Thanks for playing around with the RISE live demo binder!