In [2]:
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
from IPython.html.widgets import interact
In [5]:
@interact
def plot_sine(omega=(0,10)):
x = np.linspace(0,6,1000)
y = np.sin(x*omega)
plt.plot(x,y)
In [ ]: