Skip to content

Upgrade @jupyter-widgets/html-manager from 0.20 to 1.0#237

Open
cpsievert wants to merge 2 commits intomainfrom
upgrade-html-manager-v1
Open

Upgrade @jupyter-widgets/html-manager from 0.20 to 1.0#237
cpsievert wants to merge 2 commits intomainfrom
upgrade-html-manager-v1

Conversation

@cpsievert
Copy link
Copy Markdown
Collaborator

Summary

  • Upgrades @jupyter-widgets/html-manager from ^0.20.1 to ^1.0.14 (aligns with ipywidgets 8.x)
  • Adapts display_view() / create_view() call signatures to the new API (the old shim for the removed dummy first argument is no longer needed)
  • Adds get_model() override with async waiter pattern to handle out-of-order comm_open messages — Shiny delivers these one at a time with microtask breaks, so a parent model's deserialization may reference a child model whose comm_open hasn't been processed yet
  • Replaces wildcard .forward-fill-potential > * CSS selector with .forward-fill-potential > .lm-Widget to avoid giving flex sizing to transient tooltip/overlay siblings
  • Updates static libembed-amd.js bundle and font assets to match v1.0.14
  • Adds Playwright regression test for ipyleaflet GeoJSON hover (issue Widget cleanup callback registers on temporary isolate Context, causing premature widget.close() #221)

Test plan

  • Run make check (format, types, unit tests)
  • Run make test-playwright to verify existing + new browser tests pass
  • Manually test ipyleaflet, plotly, altair, and ipywidgets examples to verify rendering

🤖 Generated with Claude Code

@cpsievert cpsievert force-pushed the upgrade-html-manager-v1 branch 2 times, most recently from 1f54b38 to 1ad47b1 Compare April 13, 2026 22:06
cpsievert and others added 2 commits April 14, 2026 18:16
Pure style change — no functional difference. This separates the
indentation change from the upcoming API signature update, keeping
that diff focused on the meaningful changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Upgrade the HTML manager dependency to v1.0.14 (ipywidgets 8.x line).

Key changes:
- Adapt display_view() / create_view() call signatures to new API
- Add get_model() override with async waiter to handle out-of-order
  comm_open messages (parent model referencing not-yet-registered children)
- Replace wildcard `.forward-fill-potential > *` CSS selector with
  `.forward-fill-potential > .lm-Widget` to avoid sizing transient
  tooltip siblings
- Update static libembed-amd.js bundle and font assets
- Add Playwright regression test for ipyleaflet GeoJSON hover

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cpsievert cpsievert force-pushed the upgrade-html-manager-v1 branch from 1ad47b1 to 4df64d5 Compare April 14, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant