pyglobegl
anywidget wrapper for globe.gl with integrations with popular Python spatial packages.
📖 Full documentation: https://pyglobegl.pages.dev/
pyglobegl renders interactive WebGL globes in modern notebook environments
(Jupyter, JupyterLab, Colab, VS Code, marimo) and drives them from a friendly,
strongly typed Python API. It ships a prebuilt JupyterLab extension, so
pip install is all you need.
Installation
pip install pyglobegl
Optional spatial extras:
pip install "pyglobegl[geopandas]" # GeoPandas + Pandera helpers
pip install "pyglobegl[movingpandas]" # MovingPandas (includes GeoPandas)
See the installation guide for uv and extras details.
Quick start
from IPython.display import display
from pyglobegl import (
GlobeConfig,
GlobeLayerConfig,
GlobeWidget,
PointDatum,
PointsLayerConfig,
)
points = [
PointDatum(lat=0, lng=0, altitude=0.25, color="#ff0000", label="Center"),
PointDatum(lat=15, lng=-45, altitude=0.12, color="#00ff00", label="West"),
]
config = GlobeConfig(
globe=GlobeLayerConfig(
globe_image_url="https://cdn.jsdelivr.net/npm/three-globe/example/img/earth-day.jpg"
),
points=PointsLayerConfig(points_data=points),
)
display(GlobeWidget(config=config))
Layer data are typed Pydantic models (no dynamic accessor remapping), and defaults mirror globe.gl so omitted values still render predictably. See the quick start for more.
Layers & features
Each globe.gl layer is exposed as typed data models:
- Globe & images
- Points
- Arcs
- Polygons
- Paths
- Heatmaps
- Hex bin
- Hexed polygons
- Tiles
- Particles
- Rings
- Labels
Plus:
- Runtime updates & callbacks — update data and respond to hover/click after render
- Frontend Python callbacks
—
@frontend_pythonaccessors that run in the browser - GeoPandas helpers — build layer data straight from GeoDataFrames
- MovingPandas helpers — render trajectories as paths
Documentation
Contributing
Build Assets (Release Checklist)
cd frontend && pnpm run builduv build
UI Test Artifacts
- Canvas captures are saved under
ui-artifactsas{test-name}-pass-<timestamp>.pngor{test-name}-fail-<timestamp>.png. - Canvas comparisons use SSIM (structural similarity) with a fixed threshold
(currently
0.86).
Metadata
Release files for pyglobegl 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyglobegl-0.9.3.tar.gz | 1.3 MB | Without provenance | Details for pyglobegl-0.9.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyglobegl-0.9.3-py3-none-any.whl | Python 3 | none | any | Details for pyglobegl-0.9.3-py3-none-any.whl |
Total release size: 2.7 MB
Release files / pyglobegl-0.9.3.tar.gz
| Download URL | pyglobegl-0.9.3.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1187b26af290fda68bf078676143acc85ea252341fd3fc2c5b55b1c46e787c3
|
|
BLAKE2b-256 checksum How to use checksums |
53a288d7c82f9aac89b9423a5d468dcf602f454e765d7260eacf4484bcf4f677
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pyglobegl-0.9.3-py3-none-any.whl
| Download URL | pyglobegl-0.9.3-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
730095796a83a03998f705c1f0a5c0a357b3a2e40e07f810e90e720b63d7be46
|
|
BLAKE2b-256 checksum How to use checksums |
5dcfd7dd8beba40884338cdbcd19218dd5da8984ca2ea530c468889c11364e20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pyglobegl 0.9.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.