jupyter-widgets / tutorial

A tutorial for widgets
BSD 3-Clause "New" or "Revised" License
391 stars 160 forks source link

ipyvolume notebook doesn't work #123

Open mwcraig opened 3 years ago

mwcraig commented 3 years ago

I think this is because it doesn't install the jupyterlab 3.0

martinRenou commented 3 years ago

Using ipyvolume 0.6.0a8, it seems to activate properly in JupyterLab, but I am having a JS error:

Uncaught TypeError: Cannot read property 'getUniforms' of undefined
    at bt (212.beb1cf25180dbd83d1e7.js?v=beb1cf25180dbd83d1e7:2)
    at ma.renderBufferDirect (212.beb1cf25180dbd83d1e7.js?v=beb1cf25180dbd83d1e7:2)
    at yt (212.beb1cf25180dbd83d1e7.js?v=beb1cf25180dbd83d1e7:2)
    at vt (212.beb1cf25180dbd83d1e7.js?v=beb1cf25180dbd83d1e7:2)
    at ma.render (212.beb1cf25180dbd83d1e7.js?v=beb1cf25180dbd83d1e7:2)
    at M._render_eye (568.1f8f7778089deb72b58b.js?v=1f8f7778089deb72b58b:1)
    at M._real_update (568.1f8f7778089deb72b58b.js?v=1f8f7778089deb72b58b:1)

This looks like a ThreeJS issue. Maybe a wrong ThreeJS version gets pulled. Any idea @maartenbreddels ?

maartenbreddels commented 3 years ago

Weird, that could be. Is this using the setup from the main README at https://github.com/jupyter-widgets/tutorial ?

maartenbreddels commented 3 years ago

this can also be triggered when trying to display a non-displayable widget (e.g. as Scatter object), sometimes these are returned, and for some reason (although we do not inherit from DOMWidget), the widget manager tries to display a scatter object. (Same happens with bqplot I think)

mwcraig commented 3 years ago

@maartenbreddels -- we are seeing the failure using the README instructions at commit c19e35ed323b8c0c95aa8d404d35e29af7281f09

If you could take a look that would be great! We'd really like to demo ipyvolume in the tutorial this year.