pypi / anywidget
anywidget
What changed in anywidget 0.9 to 0.11, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-14.
2 breaking7 new APIs and options1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initanywidget 0.117 changes
New APIs and options 7
Resolves a child widget's underlying AnyModel for direct event subscriptions or get, set, and send access without participating in rendering.
Resolves a child widget by reference, awaits its initialize, and returns its exports and render function for composition.
initialize may return a plain object of exports, which the host exposes to other widgets that resolve this widget as a reference.
initialize now receives an AbortSignal that the host aborts when the widget is destroyed or during HMR, enabling lifecycle cleanup with web platform APIs.
render now receives an AbortSignal that the host aborts when the widget is destroyed or during HMR, enabling lifecycle cleanup with web platform APIs.
A new type alias is provided for annotations of widget references.
A new traitlet validates anywidget-compatible objects for widget references.
anywidget 0.101 changes
Breaking changes 1
Python 3.8 and 3.9 are no longer supported; Python >=3.10 is required.
anywidget 0.92 changes
Breaking changes 1
AnyWidget.__repr__ uses object.__repr__ instead of serializing all trait values, avoiding costly serialization; users can override it to restore the previous representation.
Fixes and other changes 1
The JupyterLab extension now embeds source maps in the JavaScript bundle, avoiding the MIME type issue that prevented it from loading in version 0.9.20 while retaining debugging support.