thebe icon indicating copy to clipboard operation
thebe copied to clipboard

Move to jupyterlab federated module system for preloading and ipywidgets handling

Open stevejpurves opened this issue 3 years ago • 0 comments

Context

Related to issue #577 - we should aim to deprecate required usage for module loading in the WidgetManager and move to using generated modules. Beyond ipywidgets that module loading can also be used to preload jupyterlab components and jupyterlite kernels.

This would align with jupyterlab's development direction and establish compatibility with the lab extension system.

For example, right now authors of ipywidgets need to provide two js bundles/modules, one compatible with lab and another with classic notebooks. In the requirejs approach, we're actually loading the classic notebook code, where it would be better to align on the lab compatible code.

Proposal

  • Wait on changes in Jupyterlab that isolate the federate module loading code
  • Update the widget manager as necessary using the new module loading code
  • Enable preloading of ipywidgets (and lite kernels) through thebe (or jupyter) options

Tasks and updates

  • [ ] wait on module loading code being isolated in jupyterlab - (@jtpio has a wip on a PR that we could help with / prototype against?)

stevejpurves avatar Dec 08 '22 16:12 stevejpurves