Using jslink with pn.widgets.DatePicker

I was wondering why this wouldn’t work for datepicker:

date_picker = pn.widgets.DatePicker(enabled_dates=['2020-06-13'])
text_box = pn.widgets.TextAreaInput()
date_picker.jslink(text_box, value='value')
layout = pn.Column(date_picker, text_box)
ValueError: Cannot jslink 'value' parameter on DatePicker object to 'value' parameter on TextAreaInput object. It requires a live Python kernel to have an effect.

Seems to be a simple misconfiguration, if you change it to:

pn.widgets.DatePicker._source_transforms = {}

it seems to work okay. A PR changing this by default would be appreciated.

1 Like

Thanks that works amazingly! Made a PR: