chore: upgrade Python bindings to kepler.gl 3.3.0-alpha.4 (React 19) - #3591
Open
igorDykhta wants to merge 4 commits into
Open
chore: upgrade Python bindings to kepler.gl 3.3.0-alpha.4 (React 19)#3591igorDykhta wants to merge 4 commits into
igorDykhta wants to merge 4 commits into
Conversation
Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Python Jupyter bindings to target the latest kepler.gl release (3.3.0-alpha.4), including aligning the standalone HTML export with the new React/Redux dependency model and updating the TS/JS build dependencies accordingly.
Changes:
- Bump kepler.gl (and related frontend deps) to
3.3.0-alpha.4and update the default CDN tag used by HTML export/tests. - Update HTML export to load React/Redux/etc via ESM + import maps (es-module-shims) instead of UMD scripts.
- Adjust Redux store creation typing for Redux v5 in the TypeScript bindings.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| bindings/python/tests/test_html_export.py | Updates HTML export assertions for the new kepler.gl CDN version and ESM-based dependency loading. |
| bindings/python/src/store.ts | Switches to legacy_createStore for Redux v5 and removes the TS expect-error via a typed enhancer cast. |
| bindings/python/package.json | Bumps kepler.gl packages and React/Redux ecosystem deps (React 19, Redux 5, React-Redux 9, TS 5.6). |
| bindings/python/keplergl/_html_export.py | Updates default kepler.gl CDN version and changes exported HTML to use import maps + module shims to provide globals for the kepler UMD bundle. |
| bindings/python/DEVELOPMENT.md | Raises Node.js prerequisite to >= 20. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -248,16 +248,20 @@ def test_contains_kepler_gl_cdn_script(self, sample_df): | |||
|
|
|||
| def test_default_uses_latest_stable_cdn_tag(self, sample_df): | |||
Comment on lines
+243
to
+246
| window.React = React.default || React; | ||
| window.ReactDOM = Object.assign({{}}, ReactDOM.default || ReactDOM, ReactDOMClient); | ||
| window.Redux = Redux.default || Redux; | ||
| window.ReactRedux = ReactRedux.default || ReactRedux; |
added 2 commits
July 29, 2026 04:32
Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
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.
Summary
@kepler.gl/*packages to3.3.0-alpha.4and align peer deps: React 19, Redux 5, React-Redux 9, TypeScript 5.6.<script>tags in the standalone HTML export with an ESM import map +es-module-shims, since React 19 / Redux 5 / React-Redux 9 no longer publish UMD builds. The shim keeps exported maps working when opened as a localfile://document.store.ts(StoreEnhancercast).3.3.0-alpha.4) in addition to bare major tags.Test plan
npm install && npm run buildinbindings/python— JS bundle compiles cleanly.npx tsc --noEmit— no TypeScript errors.uv run pytest tests/ -v— all 101 tests pass..htmlexport in a browser (both via HTTP and fromfile://) and verify the map loads with kepler.gl 3.3.0-alpha.4.