jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
219 stars 64 forks source link

Ensure live notebooks work with Holoviz Panel widget library #1659

Open parkey opened 4 days ago

parkey commented 4 days ago

Holoviz widget library does not work with thebe in browser

In this example, the roundtrip to the server does not work, although the javascript widgets are correctly rendered.

Myst version: 1.3.18

Panel version: 1.5.4

PyPi package name: panel

import panel as pn
pn.extension()

def press(e):
    edit.value = 'hello'

edit = pn.widgets.input.TextInput()
btn = pn.widgets.Button(name='press')
btn.on_click(press)

display(edit, btn)