In many situations, information changes dynamically, and it is desirable to present the changes graphically. In this recipe, we will discuss the creation of interacts in the Jupyter Notebook, which can be used to generate dynamic displays based on function evaluations. As an example, we will demonstrate how to create an interactive demonstration of the beats phenomenon from acoustics.
Generating interactive displays in the Jupyter Notebook
Getting ready
Start Jupyter and run the following three commands in an execution cell:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt