Skip to main content

Widget for deck.gl maps

Project description

Binder Documentation Status Anaconda-Server Badge Downloads

pydeck: Large-scale interactive data visualization in Python

demo

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:

Binder

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydeck-0.8.1b0.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB view details)

Uploaded Python 2Python 3

File details

Details for the file pydeck-0.8.1b0.tar.gz.

File metadata

  • Download URL: pydeck-0.8.1b0.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pydeck-0.8.1b0.tar.gz
Algorithm Hash digest
SHA256 9e0a67890ab061b8c6080e06f8c780934c00355a7114291c884f055f3fc0dc25
MD5 a1cd21f344b5ba2e39f3e86e8cbdace5
BLAKE2b-256 2e74b5f3cfc27405077f4ed0c8eb3783b1c85336c08d82d7c995107b6e1f410f

See more details on using hashes here.

File details

Details for the file pydeck-0.8.1b0-py2.py3-none-any.whl.

File metadata

  • Download URL: pydeck-0.8.1b0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pydeck-0.8.1b0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c89b3dd76f9991140a33b886b336c762105e9c9def8e842e891bc72dbce8a4ce
MD5 570658cf0bf2ab739d9c3c271df11726
BLAKE2b-256 104b2fc80540e2d3903452245bb657c7f758ec7342420507d1e4091b0161856e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page