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
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.3.tar.gz
(679.0 kB
view details)
Built Distribution
ipydeck-0.4.3-py3-none-any.whl
(683.3 kB
view details)
File details
Details for the file ipydeck-0.4.3.tar.gz
.
File metadata
- Download URL: ipydeck-0.4.3.tar.gz
- Upload date:
- Size: 679.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07f498e0b7508750f2b228fc30fe0addcdb8efc2c6c77bcc5e6bab1f8294a55c |
|
MD5 | 06cbf3ad4db723ff9040c6fe654ee2b0 |
|
BLAKE2b-256 | 4713c6f657f9a0d66d547101652960d7c99dc6105cbad2e4b28e4e11b64806db |
File details
Details for the file ipydeck-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: ipydeck-0.4.3-py3-none-any.whl
- Upload date:
- Size: 683.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93ec2dae5357c01334fcf1538ec0f07ef694571052486b3ef9de5b6842cb5912 |
|
MD5 | 6620e7dc3fc4614fe644f8f497a2a7a7 |
|
BLAKE2b-256 | a34042b8183bc213e83c2cf1c520aa6c92571af7e5e786139997b52c663cdc59 |