Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

open3d.visualization.draw_goemetries function not working on Google Colab

Open abhineet99 opened this issue 6 years ago • 37 comments

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?

abhineet99 avatar Jun 17 '19 05:06 abhineet99

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....

JackLangerman avatar Jun 27 '19 03:06 JackLangerman

When i do visualizer.show() it just says "JVisualizer with 1 geometries" and displays nothing. Mozilla 67.0.4 on Ubuntu 18.04.

abhineet99 avatar Jul 02 '19 05:07 abhineet99

I see the same "JVisualizer with 1 geometries" but nothing to display?

Magnetar99 avatar Aug 12 '19 18:08 Magnetar99

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!

omshinde avatar Sep 03 '19 10:09 omshinde

Any progress here?

SapphireEmbers avatar Sep 15 '19 02:09 SapphireEmbers

I got the same issue on Kaggle. Nothing was displayed with visualizer.show() To give a bit more information here's the error messages: image

Update

I managed to get it working by installing open3d before running the notebook. And it apparently helps load the jupyter widgets.

JihongJu avatar Oct 07 '19 18:10 JihongJu

The same problem in colab. Got this error RuntimeError: [Open3D ERROR] GLFW Error: X11: The DISPLAY environment variable is missing0;m

JVisualizer shows nothing

dinarkino avatar Mar 23 '20 10:03 dinarkino

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.

Thomseeen avatar Apr 13 '20 12:04 Thomseeen

Same problem here in jupyter notebook. Any update?

JayLIU0911 avatar May 04 '20 21:05 JayLIU0911

Any update?

rjsgml5698 avatar May 25 '20 01:05 rjsgml5698

I have the same issue

robotsir avatar May 28 '20 04:05 robotsir

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)

comingtoyoulive avatar Jun 22 '20 15:06 comingtoyoulive

I have the same issue. Get no output with Google Colab and jupyter Notebook

Dource avatar Jun 23 '20 07:06 Dource

Same issue here...

Jaykob avatar Jul 27 '20 11:07 Jaykob

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 avatar Aug 07 '20 00:08 germanros1987

@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

hahakid avatar Sep 03 '20 04:09 hahakid

Any progress here? Having the same issue. No visualization at all.

jousefm avatar Nov 04 '20 12:11 jousefm

same problem here, JVisualizer returns nothing

tairch avatar Dec 16 '20 17:12 tairch

Same problem here as well

EricWiener avatar Dec 18 '20 00:12 EricWiener

same issue, hope in 2021 someone gives a look

Arnavdas avatar Dec 30 '20 10:12 Arnavdas

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

richardagalvez avatar Jan 02 '21 16:01 richardagalvez

Any update?

Jeremy26 avatar Feb 01 '21 18:02 Jeremy26

Same issue. Any update?

yiliu-coding avatar Feb 11 '21 00:02 yiliu-coding

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

dbacea avatar Feb 12 '21 19:02 dbacea

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.

EricWiener avatar Feb 12 '21 20:02 EricWiener

same problem

abdelhakimbenkrama avatar Feb 28 '21 12:02 abdelhakimbenkrama

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 2021-03-02

UnaNancyOwen avatar Mar 02 '21 08:03 UnaNancyOwen

@UnaNancyOwen amazing thanks for sharing!

wtseng530 avatar Apr 06 '21 17:04 wtseng530

@UnaNancyOwen Thanks for sharing!! I solve the problem.

BupyeongHealer avatar Apr 23 '21 06:04 BupyeongHealer

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 2021-03-02

Thanks for sharing !

MehdiMaboudi avatar May 01 '21 20:05 MehdiMaboudi