When a myst site loads we currently don't display ipywidgets and actually strip out the default text/plain and widgets mimebundle, swapping it out with a html placeholder fragment.
This is because we can't display ipywidgets without a kernel, as myst doesn't process the widget state and ensure it is a part of the built content.
Aim of this issue is to track progress on changing this and getting ipywidgets to hydrate on load
[ ] 🐞 widgets do not render on SSR load / page refresh (to reproduce, navigate to a page with widgets, then refresh the page - a "widget model not found" will be displayed, but the same page works fine when navigating to the page)
When a myst site loads we currently don't display ipywidgets and actually strip out the default
text/plain
and widgets mimebundle, swapping it out with a html placeholder fragment.This is because we can't display ipywidgets without a kernel, as myst doesn't process the widget state and ensure it is a part of the built content.
Aim of this issue is to track progress on changing this and getting ipywidgets to hydrate on load
TODO:
myst-theme
to use the WidgetManager and ensure that widgets are hydrated from state (https://github.com/jupyter-book/myst-theme/pull/426) from @dwootton 💪.mystmd
to process the widget state atnotebook.metadata.widgets
and get this onto the built .json (https://github.com/jupyter-book/mystmd/pull/1382)widgets
state information that we build "out-of-band" so that it does not affect initial page load (ping @fwkoch)