Yet another Jupyter widget for deck.gl
Project description
ipydeck
ipydeck is yet another Jupyter widget for deck.gl, built on anywidget.
Features
- Supports wider range of deck.gl layers
- Including additional
BitmapTileLayer
- Including additional
- 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
Alternatives
License
MIT
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ipydeck-0.4.8-py3-none-any.whl
(844.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd2488fef253d9a16dac9c6ad5c44f6ee1be5411aac05476f407aa0e81848c96
|
|
| MD5 |
042eee742ee57254b1fa28ba5e7fe5d9
|
|
| BLAKE2b-256 |
4f859d68366bf34aafaaffaf52c49492667ebbfeee0eadfefdb5e774b832fbe7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0f87269ead3b930b958e55ff8553343eec2ab442ff945da5f9b49c927fa0374
|
|
| MD5 |
73f7cfae1a880cc33258e90f7273bed6
|
|
| BLAKE2b-256 |
e8a6e0bdb5916637d1742e34b31223e469ba1f619dac2373d7bea30e6c877fed
|