8000 Unbundle @jupyter-widgets/controls · Issue #27 · googlecolab/colab-cdn-widget-manager · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unbundle @jupyter-widgets/controls #27
Open
@blois

Description

@blois

ipywidgets 8 has a few breaking changes- most of the ones in @jupyter-widgets/base have been mitigated but some large ones in @jupyter-widgets/controls persist- notably some of the text widgets (Text, Label, others) changed the name of the model.

Can@jupyter-widgets/controls be moved out of the core package and loaded from npm like all other widgets? This would effectively move those widgets out of the public API surface area and would not require deploying new versions of the colab-cdn-widget-manager to pick up changes in @jupyter-widgets/controls.

This is complicated by jupyter-widgets/ipywidgets#3560 where the *_module_version does not match the NPM version.

If controls cannot be unbundled then this requires deploying an ipywidgets v7 version and an ipywidgets v8 version in parallel (the public API remains unchanged, they can co-exist on a page), with the version chosen by checking the ipywidgets version at runtime in: https://github.com/googlecolab/colabtools/blob/62237b03aa6c760a1d008c4861168496b53be1a3/google/colab/output/_widgets.py#L34 when

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0