Widget for deck.gl maps
Project Links
Meta
Author: Andrew Duberstein
Requires Python: >=3.8
Classifiers
Intended Audience
- Developers
- Science/Research
Topic
- Multimedia :: Graphics
Programming Language
- Python :: 3
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
Framework
- Jupyter
pydeck: Large-scale interactive data visualization in Python
The pydeck library is a set of Python bindings for making spatial visualizations with deck.gl, optimized for a Jupyter environment. To get started, see the documentation.
To install pydeck, see the instructions here.
For interactive demos, click the binder logo below:
Sample code
The following code renders a visualization similar to the one above in a Jupyter notebook:
import pydeck as pdk
# 2014 locations of car accidents in the UK
UK_ACCIDENTS_DATA = ('https://raw.githubusercontent.com/uber-common/'
'deck.gl-data/master/examples/3d-heatmap/heatmap-data.csv')
# Define a layer to display on a map
layer = pdk.Layer(
'HexagonLayer',
UK_ACCIDENTS_DATA,
get_position=['lng', 'lat'],
auto_highlight=True,
elevation_scale=50,
pickable=True,
elevation_range=[0, 3000],
extruded=True,
coverage=1)
# Set the viewport location
view_state = pdk.ViewState(
longitude=-1.415,
latitude=52.2323,
zoom=6,
min_zoom=5,
max_zoom=15,
pitch=40.5,
bearing=-27.36)
# Render
r = pdk.Deck(layers=[layer], initial_view_state=view_state)
r.to_html('demo.html')
If you're developing outside a Jupyter environment, you can run:
r.to_html('demo.html', notebook_display=False)
See the gallery for more examples.
Issues and contributing
If you encounter an issue, file it in the deck.gl issues page and include your browser's console output, if any.
If you'd like to contribute to pydeck, please follow the deck.gl contribution guidelines and the pydeck development installation instructions.
May 10, 2024
0.9.1
Mar 21, 2025
0.9.1a2
Mar 13, 2025
0.9.1a1
Apr 29, 2024
0.9.0
Apr 25, 2024
0.9.0b1
Apr 24, 2024
0.9.0b0
Apr 24, 2024
0.8.1b1
Apr 15, 2023
0.8.1b0
Nov 04, 2022
0.8.0
Oct 13, 2022
0.8.0b4
Oct 13, 2022
0.8.0b4.dev1
Oct 13, 2022
0.8.0b4.dev0
Sep 09, 2022
0.8.0b3
Sep 08, 2022
0.8.0b2
Aug 26, 2022
0.8.0b1
Oct 25, 2021
0.7.1
Aug 27, 2021
0.7.0
Apr 13, 2021
0.6.2
Feb 12, 2021
0.6.1
Feb 08, 2021
0.6.0
Oct 26, 2020
0.5.0
Aug 24, 2020
0.5.0b1
Aug 03, 2020
0.4.1
Jul 24, 2020
0.4.0
Jun 09, 2020
0.4.0b2
Jun 05, 2020
0.4.0b1
Apr 21, 2020
0.3.1
Apr 11, 2020
0.3.0
Apr 01, 2020
0.3.0b4
Mar 28, 2020
0.3.0b3
Mar 05, 2020
0.3.0b2
Feb 27, 2020
0.3.0b1
Jan 28, 2020
0.2.1
Jan 05, 2020
0.2.0
Sep 27, 2019
0.1.dev5
Sep 24, 2019
0.1.dev4
Sep 24, 2019
0.1.dev3
Sep 18, 2019
0.1.dev2
Sep 09, 2019
0.1.dev1