Skip to content
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

[Bug] TypeError: Cannot read properties of undefined (reading 'extend') in pydeck Jupyter Widget #8596

Open
1 of 7 tasks
ClayMav opened this issue Mar 7, 2024 · 1 comment

Comments

@ClayMav
Copy link

ClayMav commented Mar 7, 2024

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
  • 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:

  1. 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
  2. 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: deck.gl@9.0.0-beta.6
  • Browser: Chrome 1.62.162
  • OS: MacOS 13.6.3 (22G436) (Arm)

Logs

No response

@ClayMav ClayMav added the bug label Mar 7, 2024
@xiaohk
Copy link

xiaohk commented Mar 7, 2024

Similar error here... Can't make it work in Jupyter Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants