Skip to main content

This package is in an early development stage. You should expect things to break unannounced until we release a version 1.0.0.

You can use altair_tiles to add tiles from any xyz tile provider such as OpenStreetMap to your Altair chart. It is a counterpart to the amazing contextily package which provides this functionality for matplotlib.

You can find the documentation here.

For a general introduction to plotting geographic data with Altair, see Geoshape - Vega-Altair and Specifying Data - Vega-Altair.

Installation

pip install altair_tiles

or

conda install -c conda-forge altair_tiles

altair-tiles requires at least Vega version 5.26.0. If you use an IDE such as a Jupyter Notebook or VS Code, you usually don't have to worry about this.

Development

python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'

Run linters and tests with

hatch run test

Build and view the documentation with

hatch run doc:clean
hatch run doc:build
hatch run doc:serve

To run a clean build and publish, run

hatch run doc:build-and-publish

Release files for altair_tiles 0.4.0

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

Source distribution (sdist)

Source distribution for altair_tiles 0.4.0
File Size Uploaded
altair_tiles-0.4.0.tar.gz 9.5 kB Details

Built distribution (wheel)

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

Total release size: 18.6 kB

Release files / altair_tiles-0.4.0.tar.gz

Download URL altair_tiles-0.4.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c262a00baad4f37966be9490fc014db0dd7c15c6e98c7cf3cfa5492abb867961
BLAKE2b-256 checksum
How to use checksums
bc02f08b6d605e514226204505487ad139583e1ea858aad563fd9fbd8d617349
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / altair_tiles-0.4.0-py3-none-any.whl

Download URL altair_tiles-0.4.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eeed1a6d89800f6cf5aafa6a59ee735bc7c243cd133acebccabfdbf69cc7e33c
BLAKE2b-256 checksum
How to use checksums
c8a7a597ff7dd1e1603abd94991ce242f93979d5f10b0d45ed23976dfb22bf64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

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