Yet another Jupyter widget for deck.gl
Project description
ipydeck
ipydeck is yet another Jupyter widget for deck.gl, built on anywidget.
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.3.0.tar.gz
(596.6 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.3.0-py3-none-any.whl
(601.2 kB
view details)
File details
Details for the file ipydeck-0.3.0.tar.gz.
File metadata
- Download URL: ipydeck-0.3.0.tar.gz
- Upload date:
- Size: 596.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
474120fcc345b5cc457b7366cba7dcadf6fe8fc5772e6970cf83fc36a480da22
|
|
| MD5 |
6cca62977ea2655adaad40d60c3d658e
|
|
| BLAKE2b-256 |
086e2d95081ba6535616879d7c8e6e77f9dfabd2f892df098f53947da80e98c2
|
File details
Details for the file ipydeck-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ipydeck-0.3.0-py3-none-any.whl
- Upload date:
- Size: 601.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61d7d34ae1928bedf7ef8ad54ab771189f355f46d29f4c422233fbfa8e4f17c4
|
|
| MD5 |
51562f27f83f0ae7424fbf7142fa3f34
|
|
| BLAKE2b-256 |
5579df0dab23f294a4005dfb6868fbddd9dcc65500e3f630498fe0d071927616
|