https://github.com/ozekik/ipydeck
Yet another Jupyter widget for deck.gl
https://github.com/ozekik/ipydeck
anywidget deck-gl deckgl geospatial geospatial-analysis geospatial-visualization jupyter
Last synced: 24 days ago
JSON representation
Yet another Jupyter widget for deck.gl
- Host: GitHub
- URL: https://github.com/ozekik/ipydeck
- Owner: ozekik
- License: mit
- Created: 2023-12-02T17:29:18.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-11T08:43:26.000Z (8 months ago)
- Last Synced: 2024-10-11T12:48:47.320Z (7 months ago)
- Topics: anywidget, deck-gl, deckgl, geospatial, geospatial-analysis, geospatial-visualization, jupyter
- Language: Python
- Homepage:
- Size: 1.21 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ipydeck
[](https://pypi.org/project/ipydeck/)
`ipydeck` is yet another Jupyter widget for [deck.gl](https://deck.gl/), built on [anywidget](https://github.com/manzt/anywidget/).
## Features
- Supports wider range of deck.gl layers
- Including additional `BitmapTileLayer`
- Supports updating layers## Installation
```sh
pip install ipydeck
```## Usage
From :
```py
from ipydeck import Deck, Layer, ViewStatelayers = [
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
- [pydeck](https://deckgl.readthedocs.io/)
- [lonboard](https://github.com/developmentseed/lonboard/)## License
MIT