import pyvista as pv
pv.start_xvfb() # start a session
point_clouds = ShapeNet(root='../dataset/shapenet', split='trainval')
pcd = point_clouds[0].pos.cpu().detach().numpy() # pick a specific point cloud data from the dataset
points = pv.PolyData(pcd) # plot the dataset
points.plot(jupyter_backend='panel') # set the visualization interactive