Registry / data / k3d
library2.17.0pypypiunverified

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 k3d
INSTALL
IMPORT
SIG · K3D
K
k3d
datapythonv2.17.0
Install
8.7s avg
Import
Disk
195MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.17.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 200.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.7s · import 0.000s · 198MB
195MB installed
● package 195MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

k3d
import k3d
import k3d

Creates a 3D scatter plot with random points in a Jupyter notebook.

import k3d import numpy as np # Create a plot object plot = k3d.plot() # Generate some points points = np.random.rand(100, 3).astype(np.float32) colors = np.random.randint(0, 255, (100, 3), dtype=np.uint8) # Add a point cloud point_cloud = k3d.points(positions=points, colors=colors, point_size=0.1) plot += point_cloud # Display the plot plot.display()
Debug
Known issues
gotchak3d requires Jupyter Notebook or JupyterLab with the lab extension enabled. In JupyterLab, run `jupyter labextension install k3d` if missing.
fix
Ensure you have the k3d JupyterLab extension installed: `jupyter labextension install k3d`. For classic notebook, the extension is included.
affects: all
gotchaThe `k3d.plot()` object is a singleton-like pattern; reusing the same plot object without creating a new one can lead to stale renderings.
fix
Always create a new plot object for each visualization: `plot = k3d.plot()` before adding objects.
affects: all
deprecatedThe `k3d.helix` and `k3d.text` functions were deprecated in 2.14 and removed in 2.17. Use alternative methods for helix and text.
fix
For helix, use `k3d.line` with parametric coordinates. For text, consider using matplotlib or an overlay.
affects: >=2.17.0
breakingAs of version 2.15, the `k3d.points` function changed its signature: `positions` expects a numpy array of dtype float32 explicitly.
fix
Cast positions to `np.float32` before passing: `positions=np.array(...).astype(np.float32)`.
affects: >=2.15.0
Upgrade
Version history
2.17.0latest on PyPI · released Jul 9, 2025
Audit
Dependencies
ipywidgetsrequiredRequired for Jupyter integration
traitletsrequiredRequired for widget state management
Agent activity
6 hits · last 30 days
node
6
Resources
k3d — pip install k3d · libregistry