Skip to content

Commit 0b82473

Browse files
committed
Fix CI rendering in tensor point cloud notebook
1 parent 463e375 commit 0b82473

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docs/jupyter/t_geometry/pointcloud.ipynb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
"import open3d as o3d\n",
1515
"import open3d.core as o3c\n",
1616
"import numpy as np\n",
17-
"import matplotlib.pyplot as plt"
17+
"import matplotlib.pyplot as plt\n",
18+
"import os\n",
19+
"import sys\n",
20+
"\n",
21+
"# Only needed for the tutorial: monkey-patch visualization.\n",
22+
"sys.path.append(\"..\")\n",
23+
"import open3d_tutorial as o3dtut\n",
24+
"# Change to True to interact with visualization windows locally.\n",
25+
"o3dtut.interactive = not \"CI\" in os.environ"
1826
]
1927
},
2028
{

0 commit comments

Comments
 (0)