Skip to main content

Binder Build Status

xarray-leaflet: an xarray extension for tiled map plotting

xarray and Leaflet share this ability to work with fragments of data, xarray through Dask's chunks, and Leaflet through map tiles. In the end this is really the same concept, so it was a natural thing to make them work together.

Fortunately xarray is written in Python, and we happen to have a great Python binding for Leaflet, ipyleaflet.

xarray-leaflet uses ipyleaflet as a plotting backend for data arrays. It generates map tiles on the fly, possibly using Dask's lazy evaluation system and Zarr's chunked data storage, and serves them through the Jupyter server, allowing for big data visualization.

See the example notebooks:

How does it compare to other visualization libraries?

xarray-leaflet doesn't try to reinvent the wheel. It stands on the shoulders of giants: xarray, Jupyter widgets, Leaflet. By combining this software stack, it opens up new possibilities while being a relatively small library.

Installation

Using conda:

conda install -c conda-forge xarray_leaflet

Using pip:

pip install xarray_leaflet

Using xarray-leaflet with Voila

To work with xarray-leaflet, Voila has to be launched with the following command:

jupyter server --ServerApp.open_browser=True --ServerApp.default_url="voila/render/path_to_notebook.ipynb"

Release files for xarray_leaflet 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xarray_leaflet 0.2.3
File Size Uploaded
xarray_leaflet-0.2.3.tar.gz 352.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xarray_leaflet 0.2.3
File Interpreter ABI Platform
xarray_leaflet-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 362.4 kB

Release files / xarray_leaflet-0.2.3.tar.gz

Download URL xarray_leaflet-0.2.3.tar.gz
Size 352.8 kB
Tags Source
SHA-256 checksum
How to use checksums
728efd1a06ed92581412bffbb9fd9bc79c99513c57b6f45cbbcdb7b7295a2fc0
BLAKE2b-256 checksum
How to use checksums
f9ccad2db6d106038aa2984a551df6fe65dfa5ea4506939843ac08db6ad2a3dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.3

Release files / xarray_leaflet-0.2.3-py3-none-any.whl

Download URL xarray_leaflet-0.2.3-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27c099d16ff1dc48efd48b430568c5e46ac43c04f53364811fdad99598f03013
BLAKE2b-256 checksum
How to use checksums
a02c685a6c187bba3434552ad6df10cd0f5960b09fef3d83e53b48a976d96b3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.3

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.1.16

2 release files

0.1.14

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page