Open3D
Open3D copied to clipboard
WebVisualizer not working in Jupyter notebooks
trafficstars
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
masterbranch).
Describe the issue
I'm running the example in docs/jupyter/visualization/jupyter_visualization.ipynb but it's not working. I'm on Ubuntu with pip-installed open3d.
Steps to reproduce the bug
import open3d as o3d
from open3d.web_visualizer import draw
cube_red = o3d.geometry.TriangleMesh.create_box(1, 2, 4)
cube_red.compute_vertex_normals()
cube_red.paint_uniform_color((1.0, 0.0, 0.0))
draw(cube_red)
Error message
Jupyter environment detected. Enabling Open3D WebVisualizer.
[Open3D INFO] WebRTC GUI backend enabled.
[Open3D INFO] WebRTCWindowSystem: HTTP handshake server disabled.
[Open3D INFO] Resetting default logger to print to terminal.
[Open3D INFO] Window window_0 created.
[Open3D INFO] EGL headless mode enabled.
[Open3D INFO] ICE servers: {"stun:stun.l.google.com:19302", "turn:user:[email protected]:3478", "turn:user:[email protected]:3478?transport=tcp"}
FEngine (64 bits) created at 0x7f86359d2010 (threading is enabled)
[Open3D INFO] Set WEBRTC_STUN_SERVER environment variable add a customized WebRTC STUN server.
[Open3D INFO] WebRTC Jupyter handshake mode enabled.
[Open Browser Console for more detailed log - Double click to close this message]
Model class 'WebVisualizerModel' from module 'open3d' is loaded but can not be instantiated
TypeError: o._deserialize_state is not a function
at u._make_model (http://localhost:8889/nbextensions/jupyter-js-widgets/extension.js:2:747339)
Expected behavior
I should get the visualization in the notebook output.
Open3D, Python and System information
- Operating system: Ubuntu 22.04
- Python version: Python 3.9.12 (main, Apr 5 2022, 06:56:58)
[GCC 7.5.0]
- Open3D version: output from python: 0.15.2
- System architecture: x86
- Is this a remote workstation?: yes
- How did you install Open3D?: pip
Additional information
No response