You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a found a condition that prevents ipyvolume from displaying correctly.
When installing K3D along with ipyvolume, ipyvolume display no longer works:
There is this error in the web console: Uncaught TypeError: class constructors must be invoked with 'new'
Full error message
Uncaught TypeError: class constructors must be invoked with 'new'
e http://127.0.0.1:8888/lab/extensions/ipyvolume/static/58.5dd767d4301576cee659.js?v=5dd767d4301576cee659:1
e http://127.0.0.1:8888/lab/extensions/ipyvolume/static/58.5dd767d4301576cee659.js?v=5dd767d4301576cee659:1
_d3_add_axis http://127.0.0.1:8888/lab/extensions/ipyvolume/static/568.df354347cf6898d012c4.js?v=df354347cf6898d012c4:1
y http://127.0.0.1:8888/lab/extensions/ipyvolume/static/568.df354347cf6898d012c4.js?v=df354347cf6898d012c4:1
each http://127.0.0.1:8888/lab/extensions/bqplot/static/815.4fcd9a1489787115f930.js?v=4fcd9a1489787115f930:1
_real_update http://127.0.0.1:8888/lab/extensions/ipyvolume/static/568.df354347cf6898d012c4.js?v=df354347cf6898d012c4:1
58.5dd767d4301576cee659.js:1:4825
e http://127.0.0.1:8888/lab/extensions/ipyvolume/static/58.5dd767d4301576cee659.js?v=5dd767d4301576cee659:1
e http://127.0.0.1:8888/lab/extensions/ipyvolume/static/58.5dd767d4301576cee659.js?v=5dd767d4301576cee659:1
_d3_add_axis http://127.0.0.1:8888/lab/extensions/ipyvolume/static/568.df354347cf6898d012c4.js?v=df354347cf6898d012c4:1
y http://127.0.0.1:8888/lab/extensions/ipyvolume/static/568.df354347cf6898d012c4.js?v=df354347cf6898d012c4:1
each http://127.0.0.1:8888/lab/extensions/bqplot/static/815.4fcd9a1489787115f930.js?v=4fcd9a1489787115f930:1
_real_update http://127.0.0.1:8888/lab/extensions/ipyvolume/static/568.df354347cf6898d012c4.js?v=df354347cf6898d012c4:1
_real_update self-hosted:850
Looking at the code throwing the exception in the debugger, it points to a file starting with (self.webpackChunkipyvolume = self.webpackChunkipyvolume || [ at a linevar s = t.call(this) || this; where t is of type lr() and points to a file starting with (self.webpackChunkk3d = self.webpackChunkk3d || [ with Object3D: () =>lr,.
So it seems ipyvolume ends-up using Three.js bundled with k3d.
Create a conda environment with: mamba create -p test-ipyvolume python=3.11 jupyterlab=3.6.7 ipyvolume k3d (btw theres's the same with JupyterLab 4), start jupyter lab and run the code of one the ipyvolume examples.
Hi,
We have a found a condition that prevents
ipyvolume
from displaying correctly.When installing K3D along with
ipyvolume
,ipyvolume
display no longer works:There is this error in the web console:
Uncaught TypeError: class constructors must be invoked with 'new'
Full error message
Looking at the code throwing the exception in the debugger, it points to a file starting with
(self.webpackChunkipyvolume = self.webpackChunkipyvolume || [
at a linevar s = t.call(this) || this;
wheret
is of typelr()
and points to a file starting with(self.webpackChunkk3d = self.webpackChunkk3d || [
withObject3D: () =>lr,
.So it seems
ipyvolume
ends-up using Three.js bundled withk3d
.Thanks @axelboc for help&tips to look into this.
How to reproduce
Create a conda environment with:
mamba create -p test-ipyvolume python=3.11 jupyterlab=3.6.7 ipyvolume k3d
(btw theres's the same with JupyterLab 4), start jupyter lab and run the code of one the ipyvolume examples.Full list of installed packages
Uninstalling
k3d
makesipyvolume
work.attn @vincefn
The text was updated successfully, but these errors were encountered: