daavoo / pyntcloud

pyntcloud is a Python library for working with 3D point clouds.
http://pyntcloud.readthedocs.io
MIT License
1.39k stars 221 forks source link

Point cloud cannot be displayed successfully #276

Open wzy19950426 opened 4 years ago

wzy19950426 commented 4 years ago

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.

daavoo commented 4 years ago

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 commented 4 years ago

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

wzy19950426 commented 4 years ago

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 commented 4 years ago

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

daavoo commented 4 years ago

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?

wzy19950426 commented 4 years ago

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

FuriouslyCurious commented 3 years ago

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"