from IPython.html.widgets import interact, interactive, fixed from IPython.html import widgets from IPython.display import clear_output, display, HTML def show_args(**kwargs): s = '

Arguments:

\n' for k,v in kwargs.items(): s += '\n'.format(k,v) s += '
{0}{1}
' display(HTML(s)) show_args(a=10, b='Hi There', c=True) i = interact(show_args, Temp=(0,10), Current=(0.,10.,0.01), z=True, Text=u'Type here!', #Algorithm=['This','That','Other'], a=widgets.FloatSliderWidget(min=-10.0, max=10.0, step=0.1, value=5.0, description="Float (a)") ) i.widget