Skip to content

fix(kepler-jupyter): prepare keplergl==0.4.0rc5 - #3672

Open
lixun910 wants to merge 2 commits into
masterfrom
xli-fix-html-export-cdn
Open

fix(kepler-jupyter): prepare keplergl==0.4.0rc5#3672
lixun910 wants to merge 2 commits into
masterfrom
xli-fix-html-export-cdn

Conversation

@lixun910

@lixun910 lixun910 commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Prepare new keplergl==0.4.0rc5

  • Bump the pin to 3.3.0-alpha.8: the unknown-theme → default dark theme fallback landed in v3.3.0-alpha.7 (a0bee76, feat: add optional theme switch toggle #3620)
  • The UMD bundle is fetched from unpkg in the browser at open time, so this is a one-line Python template change — no JS rebuild needed
  • Update the 3 version-string assertions in tests/test_html_export.py (88 tests pass)
  • Bump pyproject.toml to 0.4.0rc5 so a new prerelease can be published with the fixed template

Follow-up

Publishing still needs to be done manually: after merge, run the Build and Publish KeplerGL Python Package workflow via workflow_dispatch (prerelease checked) → PyPI 0.4.0rc5. Users on the editable/source install are fixed immediately; PyPI users need the release.

🤖 Generated with Claude Code

save_to_html() exports rendered a blank page: kepler.gl's
availableThemeSelector in <=3.3.0-alpha.6 returns the theme value
unchanged when no theme prop is provided, and the standalone template
mounts <KeplerGl> without one, so bottomWidgetSelector crashed reading
theme.sidePanel.margin.left. The unknown-theme fallback to the default
dark theme landed in v3.3.0-alpha.7 (a0bee76, #3620); verified headless
Chrome renders arcs, points and basemap correctly with 3.3.0-alpha.8.

Also bumps pyproject to 0.4.0rc5 so a new prerelease can be published
with the fixed template.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 29, 2026 06:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Python Jupyter bindings’ standalone HTML export template to load a newer kepler.gl UMD bundle from unpkg, addressing a blank-page crash in save_to_html() exports by picking up upstream theme-handling fixes.

Changes:

  • Bump the pinned kepler.gl CDN UMD/CSS version in the standalone export template to 3.3.0-alpha.8.
  • Update Python tests that assert the embedded CDN URLs.
  • Bump the Python package prerelease version to 0.4.0rc5.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
bindings/python/keplergl/_html_export.py Updates DEFAULT_KEPLER_GL_CDN_VERSION so exported HTML pulls the newer UMD bundle/CSS from unpkg.
bindings/python/tests/test_html_export.py Updates hard-coded URL assertions to match the new default CDN version.
bindings/python/pyproject.toml Bumps the Python package version for a new prerelease publish.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

[project]
name = "keplergl"
version = "0.4.0rc4"
version = "0.4.0rc5"
@lixun910 lixun910 changed the title fix(kepler-jupyter): bump standalone export CDN bundle to 3.3.0-alpha.8 fix(kepler-jupyter): prepare keplergl==0.4.0rc5 Aug 29, 2026
@lixun910
lixun910 requested a review from igorDykhta August 29, 2026 06:06
The 0.4.0rc5 bump updated pyproject.toml but not keplergl/_version.py,
so keplergl.__version__ reported 0.4.0rc4 at runtime.

Co-Authored-By: Claude Code <noreply@anthropic.com>
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.

3 participants