In [ ]:
from k3d import K3D

plot = K3D()
view_matrix = (
    (1.0, 0.0, 10.0, 0.0),
    (0.0, 1.0, 2.0, 0.0),
    (0.0, 0.0, 1.0, 0.0),
    (0.0, 0.0, 0.0, 1.0)
)
positions = (
    (-10, -15, 0),
    (-10, 5, 0),
    (10, 5, 0),
    (-10, -15, 0),
    (10, -15, 0),
    (-10, 5, 0),
    (0, 15, 0),
    (10, 5, 0),
    (10, -15, 0)
)
plot += K3D.line(view_matrix, positions, color=0xff0000, width=2.5)
plot.display()