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.7.1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

pydeck-0.7.1-py2.py3-none-any.whl (4.3 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file pydeck-0.7.1.tar.gz.

File metadata

  • Download URL: pydeck-0.7.1.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7

File hashes

Hashes for pydeck-0.7.1.tar.gz
Algorithm Hash digest
SHA256 907601c99f7510e16d27d7cb62bfa145216d166a2b5c9c50cfe2b65b032ebd2e
MD5 171c233f4d6bd94d2efddbfd7c7f6e8a
BLAKE2b-256 ce5ac2b00e7360ad77ef503bb5bbef0e456be633dc0bde37526cdae7cb679953

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydeck-0.7.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7

File hashes

Hashes for pydeck-0.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7fc49b00840608068b930f9269169c7c9f3198b8b4635c934ba6d887c4e54503
MD5 f5c8c1acb705d74d4d70aa99cea1d0ea
BLAKE2b-256 7d39f58de74a3b4055bc7772bd77eccbf6e3a6e95d84fef53bb56ae93bea2fb9

See more details on using hashes here.

Supported by

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