Very new to this. I'm in Jupyter Notebook, following instructions to make interactive visualizations. I'm using the following code, taken directly from the site:
from IPython.html.widgets import *
t = arange(0.0, 1.0, 0.01)
def pltsin(f):
plt.plot(x,sin(2*pi*t*f))
plt.show()
interact(pltsin, f=(1,10,0.1))
When I try this, I get the following error:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Input In [3], in <cell line: 10>()
6 print(text.value)
8 text.on_submit(handle_submit)
---> 10 from IPython.html.widgets import *
11 t = arange(0.0, 1.0, 0.01)
13 def pltsin(f):
ModuleNotFoundError: No module named 'IPython.html'
What's the problem here? Is there something I've failed to install? Thanks in advance for the assistance.