jupyter-widgets / pythreejs

A Jupyter - Three.js bridge
https://pythreejs.readthedocs.io
Other
943 stars 188 forks source link

Version 2.4.0 does not render any widget #385

Closed DonJayamanne closed 2 years ago

DonJayamanne commented 2 years ago

Installed the latest version 2.4.0 and tested a simple widget an nothing is rendered anymore. Tested in Jupyter Notebook, Jupyter Lab Looks like the widget mimetype is not sent back at all, only getting text output.

Sample code

from pythreejs import *
from IPython.display import display
from math import pi

# Reduce repo churn for examples with embedded state:
from pythreejs._example_helper import use_example_model_ids
use_example_model_ids()

BoxGeometry(
    width=5,
    height=10,
    depth=15,
    widthSegments=5,
    heightSegments=10,
    depthSegments=15)
vidartf commented 2 years ago

I just created a fresh environment where I installed Jupyter Lab and pythreejs 2.4.0, and it works there for me. Could you please provide some more context so I can reproduce? What version of ipywidgets are you using? Which version of jupyterlab are you using? How did you install pythreejs (pip, conda, other?) etc. etc.

vidartf commented 2 years ago

Also useful info: Output of jupyter labextension list

vidartf commented 2 years ago

After looking a little closer, I see that previews do not work with ipywidgets 7.