Jupyter Visualization

Since version 0.4.0, we added experimental support for Jupyter visualization with WebGL. If Open3D is installed from pip or conda repository, Jupyter supported is enabled by default. If Open3D is compiled from source, please refer to Setup Python binding environments on how to build Open3D with Jupyter visualization support.

Note that Jupyter Visualization is still at an early experimental stage. Here are the main limitations:

  1. Only point cloud geometry is supported.

  2. Camera is initialized with fixed parameters, therefore, the initial view may not be optimal for the point cloud.

  3. Performance is not optimized.

Controls

  • Mouse wheel: zoom in/out

  • Left mouse button drag: rotate axis

  • Right mouse button drag: panning

Example usage

Jupyter visualizer is defined in the JVisualizer class. Initialize the class, call add_geometry to add an Open3D geometry, and then call the show to display the Jupyter widgets.

[1]:
import numpy as np
import open3d as o3
from open3d import JVisualizer

pts_path = "examples/TestData/fragment.ply"
fragment = o3.read_point_cloud(pts_path)
visualizer = JVisualizer()
visualizer.add_geometry(fragment)
visualizer.show()
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-3a21e503d668> in <module>
      1 import numpy as np
      2 import open3d as o3
----> 3 from open3d import JVisualizer
      4
      5 pts_path = "examples/TestData/fragment.ply"

ImportError: cannot import name 'JVisualizer'

If the point cloud is not visible (due to the fixed camera initialization), try first zooming in/out with mouse wheel, and dragging right button of the mouse to pan.