Skip to main content

Yet another Jupyter widget for deck.gl

Project description

ipydeck

PyPI CI

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.8.tar.gz (836.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipydeck-0.4.8-py3-none-any.whl (844.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipydeck-0.4.8.tar.gz
  • Upload date:
  • Size: 836.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ipydeck-0.4.8.tar.gz
Algorithm Hash digest
SHA256 dd2488fef253d9a16dac9c6ad5c44f6ee1be5411aac05476f407aa0e81848c96
MD5 042eee742ee57254b1fa28ba5e7fe5d9
BLAKE2b-256 4f859d68366bf34aafaaffaf52c49492667ebbfeee0eadfefdb5e774b832fbe7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipydeck-0.4.8-py3-none-any.whl
  • Upload date:
  • Size: 844.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ipydeck-0.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c0f87269ead3b930b958e55ff8553343eec2ab442ff945da5f9b49c927fa0374
MD5 73f7cfae1a880cc33258e90f7273bed6
BLAKE2b-256 e8a6e0bdb5916637d1742e34b31223e469ba1f619dac2373d7bea30e6c877fed

See more details on using hashes here.

Supported by

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