In [ ]:
from k3d import K3D
import random

plot = K3D()
view_matrix = (
    (0.0, 1.0, 0.0, -25.0),
    (0.0, 0.0, 1.0, -25.0),
    (1.0, 0.0, 0.0, -25.0),
    (0.0, 0.0, 0.0, 1.0)
)
points_number = 400
positions = tuple(tuple(random.uniform(1, 50) for i in range(3)) for i in range(points_number))
colors = tuple(tuple(random.uniform(0, 1) for i in range(3)) for i in range(points_number))
plot += K3D.points(view_matrix, positions, colors, point_size=3.0)
plot.display()