import panel as pn pn.extension() switch = pn.widgets.Switch(name='Switch') switch switch.value pn.Row(switch.controls(jslink=True), switch)