Open3D
Open3D copied to clipboard
open3d.visualization.draw_goemetries function not working on Google Colab
open3d.visualization.draw_goemetries function not working on Google Colab.
I installed open3d on Google Colab using pip in python3. But this function is not working , it is not showing any error but doesn't produce any output, while other functions still do there job. I think this function returns the visualisation in a new window which is not supported in the browser, any way around this?
I believe this is a headless rendering issue related to #940 #972 .
You may be able to work around using jupyter visualization for some applications:
http://www.open3d.org/docs/tutorial/Basic/jupyter.html
Hopefully headless gets figured out soon though....
When i do visualizer.show() it just says "JVisualizer with 1 geometries" and displays nothing.
Mozilla 67.0.4 on Ubuntu 18.04.
I see the same "JVisualizer with 1 geometries" but nothing to display?
Facing the same issue on Google Colab!
Something like %open3d inline similar to %matplotlib inline using interactive magic functions would be a great help.
Thanks!
Any progress here?
I got the same issue on Kaggle. Nothing was displayed with visualizer.show()
To give a bit more information here's the error messages:

Update
I managed to get it working by installing open3d before running the notebook. And it apparently helps load the jupyter widgets.
The same problem in colab. Got this error
RuntimeError: [Open3D ERROR] GLFW Error: X11: The DISPLAY environment variable is missing0;m
JVisualizer shows nothing
Can't get it to work in combination with Google Colab either. Using the JVisualizer nothing is printed at all while the error Error has occurred while trying to update output. Error: "Widgets module open3d is not supported" is printed in the dev-tools console.
Same problem here in jupyter notebook. Any update?
Any update?
I have the same issue
I have the same issue, but what I know is only happening 'RuntimeError: [Open3D ERROR] GLFW Error: GLX: Forward compatibility requested but GLX_ARB_create_context_profile is unavailable'(MAY BE headless ISSUE)
I have the same issue. Get no output with Google Colab and jupyter Notebook
Same issue here...
thank you for your "kind" words @pankajbadatia . Could anybody provide the version of Open3D they are using? @yxlao could you take a look at this?
@germanros1987 open3d 0.10.0.1 o3d.visualization.draw_geometries([pcd]) #works
visualizer = JVisualizer() visualizer.add_geometry(pcd) visualizer.show() #show nothing & return JVisualizer with 1 geometries
Any progress here? Having the same issue. No visualization at all.
same problem here, JVisualizer returns nothing
Same problem here as well
same issue, hope in 2021 someone gives a look
Same issue here. By the looks of it, Open3D has been completely abandoned and another library should be sought out for work in a jupyter environment. ipygany looks promising but I have not worked with it before. If anyone has any suggestions on working with 3D data in jupyter lab / notebooks, please comment, cheers
Any update?
Same issue. Any update?
Same issue on Google Colab with Open3D version 0.12.0. Using the code from the official documentation plots nothing (see http://www.open3d.org/docs/latest/tutorial/Basic/jupyter.html). I've also tried with: o3d.visualization.draw_geometries([pcd]), which does not plot anything and it raises the following warnings:
[Open3D WARNING] GLFW Error: X11: The DISPLAY environment variable is missing0;m [Open3D WARNING] Failed to initialize GLFW0;m [Open3D WARNING] [DrawGeometries] Failed creating OpenGL window.0;m
This is a work-around, not a solution, but I created a package bbox-utils that allows you to perform common operations and visualizations with bounding boxes. I use Open3D to handle the geometry operations, but I then display the point cloud using Plotly. If you're interested please feel free to take a look: https://github.com/EricWiener/bbox-utils.
Here's a demo Jupyter notebook that shows how to display a bounding box in a point cloud. Here's a colab notebook.
same problem
Hi, all! You can visualize Open3D geometries on Google Colab using Plotly. It works fine on Google Colab. 👍
https://colab.research.google.com/drive/1CR_HDvJ2AnjJV3Bf5vwP70K0hx3RcdMb?usp=sharing

@UnaNancyOwen amazing thanks for sharing!
@UnaNancyOwen Thanks for sharing!! I solve the problem.
Hi, all! You can visualize Open3D geometries on Google Colab using Plotly. It works fine on Google Colab. 👍 https://colab.research.google.com/drive/1CR_HDvJ2AnjJV3Bf5vwP70K0hx3RcdMb?usp=sharing
Thanks for sharing !