frameableWidget function

Adds pymjs initialization code to a htmlwidget.