thebe icon indicating copy to clipboard operation
thebe copied to clipboard

🐢 ipwidgets seem to 'disconnect' in `thebe-lite`

Open stevejpurves opened this issue 1 year ago • 4 comments

This is reproducible from both thebe in HTML and thebe-core/thebe-react.

After starting activating thebe in lite mode, and running a notebook cell that contains ipywidgets, the cell executes as expected but when interacting with sliders, only the initial change from each slider seems to take effect, after that the slider does not influence the output any more. It's like after the first message is processed, no further messages are?

https://github.com/user-attachments/assets/d6c694d7-edaf-4271-84f0-3cf43234de98

stevejpurves avatar Sep 06 '24 14:09 stevejpurves

@jtpio after upgrading to 4.2.0 and updating all our jupyterlab / widgets dependencies I'm seeing this only in lite, not in connections to servers. Have you encountered this before in jupyterlite itself?

stevejpurves avatar Sep 06 '24 14:09 stevejpurves

Issue is now reproducible here: https://jupyter-book.github.io/thebe/

stevejpurves avatar Sep 06 '24 22:09 stevejpurves

Maybe it's related to this issue opened recently in JupyterLite with widgets misbehaving in JupyterLite only (but not in JupyterLab): https://github.com/jupyterlite/jupyterlite/issues/1465

(although haven't checked yet, just linking for reference)

jtpio avatar Sep 09 '24 12:09 jtpio

FYI 0.4.6 was just released and should hopefully fix the issue: https://github.com/jupyterlite/pyodide-kernel/releases/tag/v0.4.6

jtpio avatar Dec 17 '24 08:12 jtpio