K3D-tools/K3D-jupyter

Pythonk3d-jupyter.org

WebGL 3D plotting for Jupyter: meshes, isosurfaces, volumes, voxels and point clouds from NumPy arrays, with a path-traced cinematic renderer.

jupytervisualization3danywidgetisosurfacejupyter-widgetnumpypath-tracingpoint-cloudscientific-visualizationvolume-renderingvoxel
스타 성장
스타
1k
포크
124
주간 성장
+3
이슈
2
5001k
2023년 2월2024년 4월2025년 6월2026년 9월
아티팩트PyPI
README

K3D Jupyter

Downloads Downloads Anaconda-Server Badge CodeQL GitHub Sponsor

K3D lets you create 3D plots backed by WebGL with high-level API (surfaces, isosurfaces, voxels, mesh, point clouds, vtk objects, volume renderer, colormaps, etc). The primary aim of K3D-jupyter is to be easy to use as a standalone package like matplotlib, but also to allow interoperation with existing libraries as VTK. K3D can be run as:

  • Jupyter Notebook / JupyterLab widget (anywidget) 🚀
  • Google Colab widget 🎉
  • VS Code notebooks 🧩
  • Standalone HTML/JS 📑

Since 3.0.0 a plot also chooses how it is lit, through plot.renderer: simple (the default rasteriser), advanced (image-based lighting with ambient occlusion) or cinematic (progressive path tracing). cinematic is experimental — it needs WebGL2 with renderable float textures, does not cover every object (volume_slice is not drawn, volumes stay outside the light simulation), and its API and output may still change; simple and advanced are the stable choices. See Renderers.

Documentation: https://k3d-jupyter.org

Showcase:

Two frames from the renderers 3.0.0 added, both produced by the code in this repository — click either one for how it works.

Curl-noise pearls under the advanced renderer

advanced: image-based lighting and ambient occlusion. A million analytic sphere impostors, with the occlusion in the crevices between strands doing the sculpting.

The Stanford dragon, path traced

cinematic: progressive path tracing. 871k triangles read through VTK, 512 samples, lit only by an environment map — the shadow under the belly and the light the floor throws back into the flank are consequences of the simulation, not effects.

points_cloud

streamlines

volume_rendering

volume_slide_view

transfer_function_editor

YouTube:

Click to watch at YouTube:

Volume renderer

Volume renderer

Volume renderer

Volume renderer

Try it Now!

Watch: Interactive showcase gallery

Installation

PyPI

To install from PyPI use pip:

$ pip install k3d

Conda/Anaconda

To install from conda-forge use:

$ conda install -c conda-forge k3d

Google Colab

Since 3.0.0 (the anywidget migration) no extra steps are needed:

!pip install k3d

import k3d and plot - custom widget activation and the text protocol are no longer required.

Installing directly from GitHub

To install directly from this repository (requires git and node.js + npm to build):

$ pip install git+https://github.com/K3D-tools/K3D-jupyter

This also makes possible installing the most up-to-date development version (same requirements):

$ pip install git+https://github.com/K3D-tools/K3D-jupyter@devel

To install any historical version, replace devel above with any tag or commit hash.

Source

For a development installation (requires npm and node.js),

$ git clone https://github.com/K3D-tools/K3D-jupyter.git
$ cd K3D-jupyter
$ pip install -e .

No separate JupyterLab extension step is needed - the widget ships its own frontend module (anywidget).

Code of Conduct

K3D-jupyter follows the Python Software Foundation Code of Conduct in everything we do.

Kudos

  • Jupyter is my ❤️
  • OpenDreamKit is 🚀
  • Three.js is 🥇

Acknowledgments

Research Infrastructure project This package was created as part of the Horizon 2020 European OpenDreamKit (grant agreement #676541).
관련 저장소
tqdm/tqdm

:zap: A Fast, Extensible Progress Bar for Python and CLI

PythonPyPIcliOtherprogressbarprogressmeter
tqdm.github.io
31.3k1.5k
trekhleb/homemade-machine-learning

🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained

Jupyter NotebookMIT Licensepythonjupyter
24.8k4.2k
plotly/dash

Data Apps & Dashboards for Python. No JavaScript Required.

PythonPyPIMIT Licensedashplotly
plotly.com/dash
24.4k2.3k
bokeh/bokeh

Interactive Data Visualization in the browser, from Python

PythonPyPIBSD 3-Clause "New" or "Revised" Licensebokehpython
bokeh.org
20.4k4.3k
ipython/ipython

Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.

PythonPyPIBSD 3-Clause "New" or "Revised" Licenseipythonjupyter
ipython.readthedocs.org
16.8k4.5k
emilwallner/Screenshot-to-code

A neural network that transforms a design mock-up into a static website.

HTMLOtherkerasdeep-learning
16.5k1.5k
FavioVazquez/ds-cheatsheets

List of Data Science Cheatsheets to rule the world

tutorialMIT Licensedatasciencepython
16.3k4k
kubeflow/kubeflow

Machine Learning Toolkit for Kubernetes

Apache License 2.0mlkubernetes
kubeflow.org
15.9k2.7k
jupyterlab/jupyterlab

JupyterLab computational environment.

TypeScriptnpmBSD 3-Clause "New" or "Revised" Licensejupyterlabjupyter
jupyterlab.readthedocs.io
15.3k4.1k
jpmorganchase/python-training

Python training for business analysts and traders

Jupyter NotebookApache License 2.0pythonjupyter
14.1k2.3k
Data-Centric-AI-Community/fg-data-profiling

1 Line of code data quality profiling & exploratory data analysis for Pandas and Spark DataFrames.

PythonPyPIMIT Licensepandas-profilingpandas-dataframe
docs.sdk.ydata.ai
13.7k1.8k
jupyter/notebook

Jupyter Interactive Notebook

Jupyter NotebookBSD 3-Clause "New" or "Revised" Licenseclosemberjupyter
jupyter-notebook.readthedocs.io
13.3k5.8k