In [3]:
from __future__ import print_function
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets

In [10]:
def f(x):
    return x

In [11]:
interact(f, x=10);



In [13]:
interact(f, x=True);



In [14]:
interact(f, x='Hi, there!');



In [16]:
@interact(x=True, y=1.0)
def g(x, y):
    return (x, y)



In [18]:
def h(p, q):
    return (p, q)

In [19]:
interact(h, p=5, q=fixed(20));



In [ ]: