Skip to content

fix(jupyter-widget): defer updated layers until custom libraries load - #10787

Merged
chrisgervang merged 7 commits into
masterfrom
claude/jupyter-widget-update-deferral
Oct 4, 2026
Merged

chrisgervang merged 7 commits into
masterfrom
claude/jupyter-widget-update-deferral

Conversation

@chrisgervang

Copy link
Copy Markdown
Collaborator

For #10763

Background

#10764 defers layers whose extension comes from a custom library that has not loaded yet, but only in createDeck. The Jupyter widget sends its first JSON message right after the deck is created, and the playground converts it with a bare jsonConverter.convert, which throws on the same layer before the library has loaded.

Change List

  • updateDeck: defer layers and widgets from loading custom libraries, reapply them once loaded; transformProps hook for binary data
  • createDeck: reconvert the latest applied JSON on load, drop unconverted entries before setProps
  • onMessage: convert the json and json-with-binary messages through updateDeck
  • Unit tests: updateDeck defers before load, rethrows after; deferred layers now render as an empty list

Verified with yarn lint and the jupyter-widget headless vitest suite.

This description was drafted by an AI coding agent following the guidelines proposed in #10707.


Generated by Claude Code

@coveralls

coveralls commented Oct 2, 2026 •

Copy link
Copy Markdown

Coverage Status

No base build to compare — claude/jupyter-widget-update-deferral into master

@chrisgervang
chrisgervang marked this pull request as ready for review October 3, 2026 22:06
@greptile-apps

greptile-apps Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Changes how the Jupyter widget updates deck layers during library loading.

The PR appears safe to merge; no outstanding findings or new PR-introduced issues were identified.

Summary

The PR routes Jupyter JSON and binary updates through conversion that defers layers and widgets until custom libraries load.

  • Parses string-form JSON before checking for deferred entries.
  • Drops unconverted entries from applied props and retries the latest deferred update.
  • Adds coverage for deferral and replacement by a newer update.

Reviews (6) · Last reviewed commit: "Merge branch 'master' into claude/jupyte..."

@chrisgervang

Copy link
Copy Markdown
Collaborator Author

@greptile-apps re-review

@chrisgervang
chrisgervang merged commit 34e5c26 into master Oct 4, 2026
7 checks passed
@chrisgervang
chrisgervang deleted the claude/jupyter-widget-update-deferral branch October 4, 2026 23:14
@chrisgervang chrisgervang mentioned this pull request Oct 7, 2026
53 of 66 tasks
chrisgervang added a commit that referenced this pull request Oct 22, 2026
@chrisgervang

Copy link
Copy Markdown
Collaborator Author

Released in deck.gl 9.4.1 as @deck.gl/[email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants