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:
- examples/introduction.ipynb to get started.
- examples/dynamic.ipynb for more advanced visualizations, and in particular dynamic maps.
- examples/custom_projection.ipynb for an example of non-Mercator projection.
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"
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xarray_leaflet-0.2.3.tar.gz | 352.8 kB | Without provenance | Details for xarray_leaflet-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xarray_leaflet-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for xarray_leaflet-0.2.3-py3-none-any.whl |
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
|
Security for xarray_leaflet 0.2.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.