CoCalc Shared Filessupport / rise-demo.ipynbOpen in CoCalc with one click!
Author: William A. Stein
License: GNU General Public License v3.0
Description: Examples for support purposes.

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,, 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!

And that's it!

If you want to learn more about the RISE plugin, check out the RISE documentation.

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!