[Bug] TypeError: Cannot read properties of undefined (reading 'extend') in pydeck Jupyter Widget
Description
Description:
The error in question occurs on loading the jupyterlab UI, is present in the browser console, and prevents the deck.gl widget from loading when used in notebooks.
Actual Behavior:
The following error message appears in the browser console:
index.out.js:687 TypeError: Cannot read properties of undefined (reading 'extend')
Flavors
- [ ] Script tag
- [ ] React
- [X] Python/Jupyter notebook
- [ ] MapboxOverlay
- [ ] GoogleMapsOverlay
- [ ] CartoLayer
- [ ] ArcGIS
Expected Behavior
Expected Behavior:
The jupyter widget should load successfully without errors.
Steps to Reproduce
Steps to Reproduce:
-
Run the following commands (from https://deckgl.readthedocs.io/en/latest/contributing.html):
# Build and prepare pydeck + jupyter extension git clone https://github.com/ClayMav/deck.gl # My fork contains some fixes to even get this far cd deck.gl/bindings/pydeck make setup-env . env/bin/activate make init make prepare-jupyter # Run jupyter lab jupyter lab -
Open the web UI and inspect the console
Additional Information:
Output from jupyter labextension list: (to show that the extension is being loaded successfully)
Note: The extension is also shown in the extensions section of the jupyterlab interface.
JupyterLab v4.1.3
/opt/homebrew/share/jupyter/labextensions
jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
jupyter-leaflet v0.18.1 enabled OK
@jupyter-widgets/jupyterlab-manager v5.0.10 enabled OK (python, jupyterlab_widgets)
Other labextensions (built into JupyterLab)
app dir: /Volumes/CaseSensitive/deck.gl/bindings/pydeck/env/share/jupyter/lab
@deck.gl/jupyter-widget v9.0.0-beta.6 enabled OK*
local extensions:
@deck.gl/jupyter-widget: /Volumes/CaseSensitive/deck.gl/modules/jupyter-widget
We suspect the issue might be related to a missing dependency in the jupyter-widget module but are unable to pinpoint the exact cause.
Request:
Any insights or suggestions to help identify the cause of this error and potential solutions would be greatly appreciated.
Environment
- Framework version: [email protected]
- Browser: Chrome 1.62.162
- OS: MacOS 13.6.3 (22G436) (Arm)
Logs
No response
Similar error here... Can't make it work in Jupyter Lab