{"id":23926,"library":"k3d","title":"K3D Jupyter","description":"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).","status":"active","version":"2.17.0","language":"python","source_language":"en","source_url":"https://github.com/K3D-tools/K3D-jupyter","tags":["3d","visualization","jupyter","webgl","notebook"],"install":[{"cmd":"pip install k3d","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"Required for Jupyter integration","package":"ipywidgets","optional":false},{"reason":"Required for widget state management","package":"traitlets","optional":false}],"imports":[{"wrong":"import k3d","symbol":"k3d","correct":"import k3d"}],"quickstart":{"code":"import k3d\nimport numpy as np\n\n# Create a plot object\nplot = k3d.plot()\n\n# Generate some points\npoints = np.random.rand(100, 3).astype(np.float32)\ncolors = np.random.randint(0, 255, (100, 3), dtype=np.uint8)\n\n# Add a point cloud\npoint_cloud = k3d.points(positions=points, colors=colors, point_size=0.1)\nplot += point_cloud\n\n# Display the plot\nplot.display()","lang":"python","description":"Creates a 3D scatter plot with random points in a Jupyter notebook."},"warnings":[{"fix":"Ensure you have the k3d JupyterLab extension installed: `jupyter labextension install k3d`. For classic notebook, the extension is included.","message":"k3d requires Jupyter Notebook or JupyterLab with the lab extension enabled. In JupyterLab, run `jupyter labextension install k3d` if missing.","severity":"gotcha","affected_versions":"all"},{"fix":"Always create a new plot object for each visualization: `plot = k3d.plot()` before adding objects.","message":"The `k3d.plot()` object is a singleton-like pattern; reusing the same plot object without creating a new one can lead to stale renderings.","severity":"gotcha","affected_versions":"all"},{"fix":"For helix, use `k3d.line` with parametric coordinates. For text, consider using matplotlib or an overlay.","message":"The `k3d.helix` and `k3d.text` functions were deprecated in 2.14 and removed in 2.17. Use alternative methods for helix and text.","severity":"deprecated","affected_versions":">=2.17.0"},{"fix":"Cast positions to `np.float32` before passing: `positions=np.array(...).astype(np.float32)`.","message":"As of version 2.15, the `k3d.points` function changed its signature: `positions` expects a numpy array of dtype float32 explicitly.","severity":"breaking","affected_versions":">=2.15.0"}],"env_vars":null,"search_vec":"'2.17.0':25 '2023':32 '3d':10,33 'current':22 'data':19 'extens':8 'geometr':18 'jupyt':2,6,35 'k3d':1,3 'last':29 'mesh':13 'notebook':7,37 'occasion':27 'point':14 'releas':28 'stabl':30 'use':20 'version':23 'visual':11,34 'voxel':15 'webgl':21,36","created_at":"2026-05-01T08:10:21.559407+00:00","updated_at":"2026-05-01T08:10:21.559407+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpe4zmp1m6/venv/lib/python3.12/site-packages/k3d/__init__.py\", line 10, in <module>\n    from .factory import (_default_color, default_colormap, label, line, lines,\n  File \"/tmp/tmpe4zmp1m6/venv/lib/python3.12/sit"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.17.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://k3d-jupyter.org","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/k3d/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}