How do I use the code keyword to jslink widgets.TextInput to widgets.JPG
This works:
text = pn.widgets.TextInput()
jpg = pn.pane.JPG('intro.jpg')
text.jslink(jpg, value='object')
But not this:
text = pn.widgets.TextInput()
jpg = pn.pane.JPG('intro.jpg')
text.jslink(jpg, code={'value': 'target.object = source.value'})
I think it has to do something with:
_target_transforms = {'object': """'<img src="' + value + '"></img>'"""}