from ipywidgets import interact
def fri(a,b): return '{} has {} stuff'.format(a,b) interact(fri, a='Sam', b=(5, 10));