Closed Tsingularity closed 2 years ago
i just found that, after remove .display()
, the plot is displayed in the notebook lol. Just wondering any idea why this could happen?
and looks like other type of plot's display() works for me. So I guess the doc's first plot example is outdated and misleading?
Hi, line
is an object, which can be displayed on a plot (or multiple plots for that matter).
So it's the plot
that should be displayed.
Using just a line
object as Jupyter cell value causes creating of an implicit Plot
, and displaying it below the cell. This is a convenience feature, normally you should create a plot
and add objects to it plot += k3d.line(...)
etc.
When you're done, you can .display()
the plot, when the scene is ready (and not re-render it after every object added).
Thanks for the help!
Just in case someone else encounter the same issue as me, could u please modify the installation doc? Thanks!
Description
I installed k3d using
conda install -c conda-forge k3d
and I can successfully import it in the notebook. However, when I am trying to run the following example in the doc:It got the following error for the display function:
AttributeError: 'Line' object has no attribute 'display'
.I installed nodejs in my conda env and also enabled nbextention as described in the readme, but the above error still exists.
Could you please take a look at this issue? Huge thanks in advance!