For example, see the following code cell:
%matplotlib inline import numpy as np import matplotlib.pyplot as plt plt.ion() fig, ax = plt.subplots() ax.scatter(*np.random.randn(2, 100), c=np.random.randn(100)) ax.set(title="Wow, an interactive plot!")
It is static for now. You can activate Thebe by pressing the button below. This will ask mybinder.org for a Python kernel, and turn the code cell into an interactive one with outputs!
Try clicking the button. The cell will be come active!
You can press “run” in order to run the contents of the cell and display the result (be patient, it will take a few moments for Binder to start the kernel).
For more examples showing how to configure, use, and activate Thebe, see the list below. We recommend browsing the raw HTML of each one in order to see how Thebe is used.