Skip to main content

Yet another Jupyter widget for deck.gl

Project description

ipydeck

PyPI

ipydeck is yet another Jupyter widget for deck.gl, built on anywidget.

Features

  • Supports wider range of deck.gl layers
    • Including additional BitmapTileLayer
  • Supports updating layers

Installation

pip install ipydeck

Usage

From https://deck.gl/playground:

from ipydeck import Deck, Layer, ViewState

layers = [
    Layer(
        type="GeoJsonLayer",
        data="https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/geojson/vancouver-blocks.json",
        opacity=0.8,
        stroked=False,
        filled=True,
        extruded=True,
        wireframe=True,
        elevation_scale=0.1,
        get_elevation="@@=properties.valuePerSqm",
        get_fill_color=[199, 233, 180],
        get_line_color=[255, 255, 255],
    )
]

view_state = ViewState(
    latitude=49.254, longitude=-123.13, zoom=11, max_zoom=16, pitch=45, bearing=0
)

deck = Deck(
    layers=layers,
    initial_view_state=view_state,
    map_style="light",
)

deck

screenshot

Alternatives

License

MIT

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

ipydeck-0.4.4.tar.gz (679.8 kB view details)

Uploaded Source

Built Distribution

ipydeck-0.4.4-py3-none-any.whl (684.1 kB view details)

Uploaded Python 3

File details

Details for the file ipydeck-0.4.4.tar.gz.

File metadata

  • Download URL: ipydeck-0.4.4.tar.gz
  • Upload date:
  • Size: 679.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/22.6.0

File hashes

Hashes for ipydeck-0.4.4.tar.gz
Algorithm Hash digest
SHA256 2312163553baf77db937ca035f9a4545ef8a243b2abf5ccc884a8b98b4a07ca9
MD5 2ce96a38ee2d7a522e97b6b08277d045
BLAKE2b-256 9935b3f62e18efc8281d9f888bae7541e339aa94fab4488d2a4776613a12495e

See more details on using hashes here.

File details

Details for the file ipydeck-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: ipydeck-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 684.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/22.6.0

File hashes

Hashes for ipydeck-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2de18002950e8aef26f1ba37defe9ed031e9f2eb9c6edae069f5a1d9454ba5d2
MD5 a759cbe543dcd8ea9bb3f89302799d06
BLAKE2b-256 9b85229bb614528012587d221545edad8330c8c708baa67aa21f74b840ffb5c2

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page