K3D-jupyter: plot.display doesn't work on my computer

HI! I don’t know if I have installed k3d properly, I can “import k3d” in jupyter notebook, however when I run

import k3d
plot = k3d.plot()
plot.display()

It output this: image

There is nothing being plotted, I hope anyone can help me, thanks a lot!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

It looks like the jupyter extension is not installed properly. Did you do: jupyter nbextension install --py --sys-prefix k3d jupyter nbextension enable --py --sys-prefix k3d ?

Check configuration in repos like in https://github.com/marcinofulus/jupyter4edu (use mybinder to play with, lab will work if you replace tree with lab in the url once jupyter has started)

usually (see postBuild)

jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install k3d

should solve the problem in v1.0+ jupyterlab.

I have a similar issue. Graphical output works on notebook, while it doesn’t work with lab: screenshot_lab_notebook

k3d seems to have been added ok:

bernd@aladdin:~> jupyter labextension list
JupyterLab v0.35.6
Known labextensions:
   app dir: /usr/share/jupyter/lab
        jupyterlab-datawidgets v6.2.0  enabled  OK
        k3d v2.6.9  enabled  OK

I’d be happy to share more information.