import panel as pn pn.extension() widget = pn.widgets.TextInput(name='A widget', value='A string') widget widget.value widget.value = 'ABCDEFG' from __future__ import print_function widget.param.watch(print, 'value') widget.value = 'A' slider = pn.widgets.FloatSlider(name='Another widget', width=200) pn.Column(widget, slider, width=200)