jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook
https://ipywidgets.readthedocs.io
BSD 3-Clause "New" or "Revised" License
3.17k stars 949 forks source link

DRAFT: Single widget manager per kernel #3922

Open fleming79 opened 6 months ago

fleming79 commented 6 months ago

Replaces https://github.com/jupyter-widgets/ipywidgets/pull/3920.

Features:

Significant changes

Notebooks and Consoles can share widgets

image

When the notebook is closed ipwidgets takes over comms and re-renders the widget.

image

Shutting down the kernel breaks the connection (note the red paper clips)

image

Re-opening the notebook now gives a message

Model not found for this kernel: AppLayout(children=(HTML(value='<h1>Fictional World Weather</h1>', layout=Layout(grid_area='header', height='a…

image

github-actions[bot] commented 6 months ago

Binder :point_left: Launch a binder notebook on branch fleming79/ipywidgets/per-kernel-widget-manager