In [7]:
%pylab inline


Populating the interactive namespace from numpy and matplotlib
/usr/local/lib/python3.5/dist-packages/IPython/core/magics/pylab.py:160: UserWarning: pylab import has clobbered these variables: ['interactive']
`%matplotlib` prevents importing * from pylab and numpy
  "\n`%matplotlib` prevents importing * from pylab and numpy"

In [8]:
from ipywidgets import interactive
  
def wave(i):
    x = np.linspace(0, np.pi * 2)
    y = np.sin(x * i)
    plt.plot(x,y)
    plt.show()

interactive_plot = interactive(wave, i=(1,3))
interactive_plot



In [ ]: