-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beta release of pydeck, Python bindings and Jupyter notebook widget for deck.gl #2929
Comments
Interactive updates available in #3174, addresses |
Known Issues Most of these have workarounds--I'll formalize them if need be. .show() renders one widget per visualization and kernelUpdate: Fixed in pydeck 7.3 beta release. A Deck object can only run r.show() once in a notebook and can’t be moved without clearing out the notebook. Code snippet to reproduce: from pydeck import (
Deck,
Layer,
ViewState)
layer = Layer(
'HexagonLayer',
UK_ACCIDENTS_DATA,
elevation_scale=50,
elevation_range=[0, 3000],
extruded=True,
coverage=1)
# Set the viewport location
view_state = ViewState(
longitude=-1.415,
latitude=52.2323,
zoom=6,
min_zoom=5,
max_zoom=15,
pitch=40.5,
bearing=-27.396)
# Combined all of it and render a viewport
r = Deck(layers=[layer], initial_view_state=view_state)
r.show()
# Run `r.show()` in a different cell and it won’t render. One solution, of course, is to move the entire cell. Rendering too many widgets produces an error from producing too many WebGL contextsWebGL contexts start dropping if Provide two way viewport communicationIn a timed update loop, any attempt to navigate the data snaps back to the configured initial viewport: This makes exploratory data analysis with PyDeck fairly difficult. Provide some sort of notebook-level error message or Python exception handling to better surface deck.gl-caught errorsErrors won't surface in the notebook cells themselves–the user has to open the JS console to see the issues. This is inconvenient, since abstracting away the JS interface makes this library much more accessible to data scientists and analysts. For example, below the notebook cell renders and then produces an error not seen outside the console: One possible solution: Modifying probe.gl logger here |
A very rough mechanism (not deck.gl specific) is to bind |
pydeck beta is released. Improvements will be tracked in #3640 |
Target use case
Enable Python developers to use deck.gl
Proposed feature
A Python wrapper around deck.gl and Jupyter notebook integration, see #2747
See #3013 and #3035 and for the associated pull requests.
v7.3 end of Aug
v7.2 end of June
@deck.gl/jupter-widget
TBD
The text was updated successfully, but these errors were encountered: