jupyter-book / thebe

Turn static HTML pages into live documents with Jupyter kernels.
https://thebe.readthedocs.io
BSD 3-Clause "New" or "Revised" License
395 stars 68 forks source link

issues with myst sites using thebe-lite #737

Closed stevejpurves closed 7 months ago

stevejpurves commented 7 months ago

Describe the bug

context When I do visit https://rowanc1.github.io/myst-lite/matplotlib

expectation I expected jupyterlite examples to work for ipywidget

bug But instead there are errors loading ipywidgets when in notebooks

image

$ jupyter-book build mybook
ERROR ...

problem This is a problem for deploying myst sites with ipywidgets

Reproduce the bug

https://rowanc1.github.io/myst-lite/matplotlib

List your environment

this is an issue with an already deployed site

jtpio commented 7 months ago

It looks similar to the previous issue: https://github.com/executablebooks/thebe/issues/689

Unfortunately this is likely to happen after each ipywidgets release (for now at least). But for now it should be fixed in the latest version of jupyterlite-pyodide-kernel. So bumping the dependency to the latest should help.

jtpio commented 7 months ago

Opened https://github.com/executablebooks/thebe/pull/738 to bump the version