Repository navigation
fix(pydeck): register_library uses resourceUri - #10759
Merged
Merged
Conversation
12 of 17 tasks
Settings.register_library appended {libraryName, uri}, but the
@deck.gl/jupyter-widget loader reads {libraryName, resourceUri}, so
libraries registered this way were never loaded.
chrisgervang
force-pushed
the
chr/pydeck-register-library-fix
branch
from
September 29, 2026 04:52
c3cb613 to
6a23357
Compare
chrisgervang
marked this pull request as ready for review
September 29, 2026 05:00
|
ibgreen
approved these changes
Oct 1, 2026
53 of 66 tasks
chrisgervang
added a commit
that referenced
this pull request
Oct 22, 2026
* fix(pydeck): register_library uses resourceUri
Settings.register_library appended {libraryName, uri}, but the
@deck.gl/jupyter-widget loader reads {libraryName, resourceUri}, so
libraries registered this way were never loaded.
* docs(pydeck): changelog entry for the register_library fix
(cherry picked from commit 74164db)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Settings.register_library(name, uri)appends{"libraryName": name, "uri": uri}, butaddCustomLibrariesin@deck.gl/jupyter-widgetdestructures{libraryName, resourceUri}. It then callsloadScript(undefined), so a library registered this way never loads and no error is shown. Settingpydeck.settings.custom_librariesdirectly withresourceUriworks, andto_htmland the Jupyter widget both pass that list through unchanged.Change List
Settings.register_library: emitresourceUriinstead ofuri, add docstringSettingsdocstring: fixresouceUrityporegister_librarycoveringto_htmland widget outputpytest tests/test_settings.pypasses; the new test fails on master.Note
Low Risk
Small API-shape bugfix in settings registration with tests and docs; no auth or data-handling impact.
Overview
Fixes
Settings.register_libraryso registered custom deck.gl bundles actually load in the pydeck frontend.Previously it appended
uri, while@deck.gl/jupyter-widget’saddCustomLibrariesexpectsresourceUri, so script loading failed silently. Entries now useresourceUri, matching manualcustom_librariesassignment and whatto_html/ the Jupyter widget pass through.Also adds a
register_librarydocstring, corrects theresouceUritypo in theSettingsdocstring, adds a unit test for the dict shape and HTML/widget output, and documents the fix in the changelog.Reviewed by Cursor Bugbot for commit 86cf561. Bugbot is set up for automated code reviews on this repo. Configure here.