skoch9 / meshplot

Plot 3D triangle meshes
GNU General Public License v3.0
148 stars 37 forks source link

Error: "Failed to load model class 'RendererModel' from module 'jupyter-threejs'" #42

Open QuanYuhan opened 2 years ago

QuanYuhan commented 2 years ago

Hi,

I was trying to use the Jupyter Notebook tutorial in the examples. However I can't draw any graphics, no matter what I try, I always get the error "Failed to load model class 'RendererModel' from module 'jupyter-threejs'". I tried changing browsers, but that didn't solve the problem. I would like to know if there is a way to solve this problem?

Thank you in advance!

Failed to load model class 'RendererModel' from module 'jupyter-threejs' Error: Script error for "jupyter-threejs" http://requirejs.org/docs/errors.html#scripterror at makeError (http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b>7953b5cc60411154f593:168:17) at HTMLScriptElement.onScriptError (http://localhost:8888/static/components/requirejs/require.js?v=d37b48bb2137faa0ab98157e240c084dd5b1b5e74911723aa1d1f04c928c2a03dedf922d049e4815f7e5a369faa2e6b6a1000aae958b7953b5cc60411154f593:1735:36)

image

nnsriram97 commented 1 year ago

Facing the same issue!

hash-ir commented 1 year ago

Were you able to resolve it? I am using meshplot==0.4.0 and it still gives me the same error (both firefox and chrome)

QuanYuhan commented 1 year ago

It's a pity that I didn't solve this problem, but I found that using jupyter-notebook in VS code can avoid this problem, maybe you can try it.

Were you able to resolve it? I am using meshplot==0.4.0 and it still gives me the same error (both firefox and chrome)

milmillin commented 1 year ago

This might be helpful: https://github.com/jupyter-widgets/pythreejs/issues/389#issuecomment-1532634461

In particular, running pip install ipywidgets jupyter==1.0.0 jupyter-contrib-core==0.4.2 jupyter-contrib-nbextensions==0.7.0 jupyterlab==3.6.3 jupyterlab-widgets==3.0.5 notebook==6.5.4 pythreejs==2.4.2 traitlets==5.9.0 widgetsnbextension==4.0.7 --force-reinstall worked for me.

paul5f5f commented 4 months ago

thank you ,i have solved this issue by following your method @milmillin