K3D is a Jupyter notebook extension for 3D visualization of meshes, points, voxels, and other geometric data using WebGL. Current version is 2.17.0, with occasional releases (last stable in 2023).
pip install k3dVerified import paths — ran on the pinned version, not inferred.
Creates a 3D scatter plot with random points in a Jupyter notebook.
Ensure you have the k3d JupyterLab extension installed: `jupyter labextension install k3d`. For classic notebook, the extension is included.
Always create a new plot object for each visualization: `plot = k3d.plot()` before adding objects.
For helix, use `k3d.line` with parametric coordinates. For text, consider using matplotlib or an overlay.
Cast positions to `np.float32` before passing: `positions=np.array(...).astype(np.float32)`.