Skip to main content

Deck.gl widget for trame

Project description

trame-deckgl extend trame widgets with components that can interface with PyDeck while being powered by Deck.gl. Deck integration in trame allow you to create rich visualization by leveraging PyDeck (Apache License).

Installing

trame-deckgl can be installed with pip:

pip install --upgrade trame-deckgl

Usage

The Trame Tutorial is the place to go to learn how to use the library and start building your own application.

The API Reference documentation provides API-level documentation.

License

trame-deckgl is made available under the MIT License. For more details, see LICENSE This license has been chosen to match the one use by Deck.gl which is use within trame-deckgl.

Enjoying trame?

Share your experience with a testimonial or with a brand approval.

Example: PyDeck

The Deck component relies on the server for generating the map definition.

import pydeck as pdk
from trame.widgets import deckgl

deck = pdk.Deck(
  map_provider="mapbox",
  map_style="mapbox://styles/mapbox/light-v9",
  initial_view_state={
      "latitude": 37.76,
      "longitude": -122.4,
      "zoom": 11,
      "pitch": 50,
  },
  layers=selected_layers,
)

widget = deckgl.Deck(mapboxApiKey=..., deck=deck)
widget.update(deck2)

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

trame-deckgl-2.0.0rc6.tar.gz (706.8 kB view hashes)

Uploaded source

Built Distribution

trame_deckgl-2.0.0rc6-py3-none-any.whl (708.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page