Getting Started

In this example we will learn how to create and display K3D plots.

The main object is the plot, which can be created using the plot() fuction from the k3d module.

To show the plot below a Jupyter cell, we call its display() method.

In [ ]:
import k3d
plot = k3d.plot()

# here you would normally create objects to display
# and add them to the plot


If K3D is installed properly, after executing the above snippet you should see something like this:

Empty plot

In the next example we will learn how to display objects on the plot.

In [ ]: