pyntcloud icon indicating copy to clipboard operation
pyntcloud copied to clipboard

Point cloud cannot be displayed successfully

Open wzy19950426 opened this issue 4 years ago • 7 comments

I use jupyter-lab and cannot successfully show that the point cloud has only a string of prints. I don't know if it is because of the code or because of a problem with the environment of jupyter-lab. I want to show pointcloud but it just give me like this prints no pointcloud view:

Renderer(camera=PerspectiveCamera(aspect=1.6, fov=90.0, position=(0.008728588931262493, 1.520455745747313, 10.… HBox(children=(Label(value='Point size:'), FloatSlider(value=0.001, max=0.01, step=1e-05), Label(value='Backgr…

Can you give me some advice,thanks very much.

wzy19950426 avatar Mar 25 '20 07:03 wzy19950426

Hola. It seems like an issue with the jupyter lab environment. Please check the comments in #187 to see if your problem is related with that.

daavoo avatar Mar 25 '20 08:03 daavoo

Specifically: https://github.com/daavoo/pyntcloud/issues/187#issuecomment-400776966

daavoo avatar Mar 25 '20 08:03 daavoo

Thank you for your reply.Point clouds can be displayed normally in notbook.But not in the lab, only 2d pictures can be displayed in the lab.

wzy19950426 avatar Mar 26 '20 06:03 wzy19950426

but when I execute command 'jupyter labextension install @jupyter-widgets/jupyterlab-manager' and 'jupyter lab build' give me the same error:'NameError: name 'CoreConfig' is not defined' I used Ubuntu16.04

wzy19950426 avatar Mar 26 '20 06:03 wzy19950426

It looks like there is an issue with the nodejs version installed. See:

https://github.com/quigleyj97/jupyterlab-spreadsheet/issues/19

Following the comments, could you run:

conda install -c conda-forge nodejs

To see if that uptades your node version and resolves the problem?

daavoo avatar Mar 26 '20 06:03 daavoo

I updated nodejs to the latest,And successfully executed: 'jupyter labextension install @jupyter-widgets/jupyterlab-manager'. Now its different befor.its succellfully display buttons: 'Point size:-------------- 0.01' and 'Background color: black'
but there is still no pointcloud its show me the error: 'Error displaying widget: model not found'.

tegra-ubuntu:~$ jupyter labextension list JupyterLab v2.0.1 Known labextensions: app dir: /usr/local/share/jupyter/lab @jupyter-widgets/jupyterlab-manager v2.0.0 enabled OK jupyterlab-datawidgets v6.2.0 enabled OK

wzy19950426 avatar Mar 27 '20 06:03 wzy19950426

I updated nodejs to the latest,And successfully executed: 'jupyter labextension install @jupyter-widgets/jupyterlab-manager'. Now its different befor.its succellfully display buttons: 'Point size:-------------- 0.01' and 'Background color: black' but there is still no pointcloud its show me the error: 'Error displaying widget: model not found'.

tegra-ubuntu:~$ jupyter labextension list JupyterLab v2.0.1 Known labextensions: app dir: /usr/local/share/jupyter/lab @jupyter-widgets/jupyterlab-manager v2.0.0 enabled OK jupyterlab-datawidgets v6.2.0 enabled OK

I also have the same issue - extension is enabled, and shows basic controls but plotting fails with message "Error displaying widget: model not found"

FuriouslyCurious avatar Dec 30 '20 17:12 FuriouslyCurious