deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug] pydeck.show() does not render in voila

Open DiracConvergence opened this issue 3 years ago • 2 comments

Description

I am unable to render pydeck.show() in voila, although it works correctly in Jupyter. Is this an expected behavior or should it be addressed ?

Is this because pydeck is notebook specific? I thought not, as some examples seem to be hosted on mybinder. I assumed it was possible to use pydeck in a Voila environment. I'm also unable to make those examples work, which could lead to a different issue (https://mybinder.org/v2/gh/uber/deck.gl/binder is not working, so every link in the documentation related to binder is down).

Flavors

  • [ ] React
  • [X] Python/Jupyter notebook
  • [ ] MapboxLayer
  • [ ] GoogleMapsOverlay
  • [ ] CartoLayer
  • [ ] DeckLayer/DeckRenderer for ArcGIS

Expected Behavior

Consistency between voila and jupyter.

Steps to Reproduce

Type the following in a jupyter cell :

import pydeck as pdk res = pdk.Deck(height = 800) res.show()

Launch a Voila with the command : voila --enable_nbextensions=True

Environment

  • Python version : Python 3.7
  • Framework version: [email protected]
  • Browser: Microsoft Edge
  • OS: Windows 10

Logs

It is possible to inspect the Voila to see some javascript errors.

DiracConvergence avatar Jun 25 '22 09:06 DiracConvergence

Does voila support jupyter widgets? If not, you can use .to_html() to generate an html representation of the pydeck map and render that in an iframe

kylebarron avatar Jun 27 '22 16:06 kylebarron

Launch a Voila with the command : voila --enable_nbextensions=True

Does this also include enabling the pydeck extension specifically? With some versions of notebook you need to explicitly bundle the extension with JS https://pydeck.gl/installation.html#enabling-pydeck-for-jupyter

kylebarron avatar Jun 27 '22 16:06 kylebarron

Hi @DiracConvergence any answer to questions by @kylebarron ?

luipir avatar Sep 11 '23 10:09 luipir

Closing, but happy to re-open if anyone is able to help identify what's needed for voila support.

donmccurdy avatar Apr 10 '24 23:04 donmccurdy