kiln-jupyter
Jupyter widget for Kiln: stream and explore large OME-Zarr volumes and NumPy arrays in your notebook with WebGPU.
pip install kiln-render
import kiln_render as kiln
v = kiln.view("https://d39zu0xtgv0613.cloudfront.net/chameleon-16bit")
v
Every field syncs both ways. Set it from Python to change the view; camera also follows the mouse. The line under the view shows how much has been streamed so far, out of the dataset's full uncompressed size.
v.mode = "mip"
v.auto_contrast() # fit the window to the data, e.g. after changing url
v.camera # [rotation x, rotation y, distance, target x, y, z]
v.screenshot("figure.png") # save the view as PNG
v.set_channel(1, visible=False) # multichannel data: change one channel
kiln.controls(v) gives the view ready-made controls: render mode, contrast per channel (colour map and contrast for single-channel data), a time slider for time series, auto contrast and reset view.
| Field | Values |
|---|---|
url |
OME-Zarr image or Kiln sharded volume: URL or local path (arrays get a URL of their own) |
mode |
dvr, mip, iso, slice |
colormap |
single-channel data: grayscale, grayscale-inverted, hot, cool, viridis, plasma, coolwarm, seismic |
window_center, window_width |
single-channel data, 0–1; None fits it to the data once loaded |
up |
volume axis that points up: x, y, z, -x, -y, -z |
camera |
orbit state, as in Kiln's cam URL parameter; [] returns to the view the dataset opened with |
timepoint |
timepoint shown, from 0; timepoints holds the count, set by the browser |
channels |
multichannel data, per channel: name, color (#rrggbb), visible, window_center, window_width; empty for single-channel data |
height |
pixels |
status |
loading state or error, set by the browser |
Local files
v = kiln.view("~/data/cells.ome.zarr")
A local path is served to the browser over 127.0.0.1 under a random URL while the kernel runs. This needs the browser and the kernel on the same computer, as in JupyterLab or VS Code. It doesn't work in Colab or on a remote JupyterHub.
Arrays
v = kiln.view(volume, scale=(2.0, 0.5, 0.5), unit="micrometer") # voxel size (z, y, x)
A 3D array (z, y, x) is served like a local path, so the same limits apply. Kiln gets it as OME-Zarr with a pyramid built in memory; nothing is written to disk. The pyramid adds about 15 % to the array's memory, which is freed with v.close(). Kiln reads uint8, uint16, int16, float32 and float64; booleans become uint8, int8 becomes int16 and other numbers become float32.
See examples/quickstart.ipynb.
Requirements
- Works in JupyterLab, VS Code, Google Colab (
!pip install kiln-render) and marimo. Local paths and arrays need the kernel on your own computer, so not in Colab. - A browser with WebGPU, such as Chrome or Edge.
- The browser reads the data, so the URL must be reachable from it and allow cross-origin requests.
- Kiln itself is loaded from jsDelivr at a pinned version (
KILN_URLinsrc/kiln_render/widget.js), so the browser needs internet access.
Examples
- Quickstart
- Explore the IDR: pick a dataset from the Image Data Resource, up to 139 GB, and stream it
- Beyond the basics: controls with ipywidgets, saving views, several views
- Process in NumPy, compare in 3D: input and result side by side with one shared camera
License
Apache-2.0
Metadata
Release files for kiln-render 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kiln_render-0.2.0.tar.gz | 23.5 kB | With provenance | Details for kiln_render-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kiln_render-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for kiln_render-0.2.0-py3-none-any.whl |
Total release size: 42.7 kB
Release files / kiln_render-0.2.0.tar.gz
| Download URL | kiln_render-0.2.0.tar.gz |
|---|---|
| Size | 23.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5b1760e3afb5fea0e66b1a538124516ec4861baedd061d0ab4cbbf5ed64e636
|
|
BLAKE2b-256 checksum How to use checksums |
03113df6c3753fb2cae8d14c5f158a365ae666e1aa05134b1b68ca9cf033e917
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / kiln_render-0.2.0-py3-none-any.whl
| Download URL | kiln_render-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
448f6b28cd7085dfd7c8aa9e5a2d4780da23a3cd5f79bb20d176ff0340d7387f
|
|
BLAKE2b-256 checksum How to use checksums |
2a6c421d810351f9517fd08b7e1c4ecde415ee3b07e8bf698b1b5729fc218423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logSecurity for kiln-render 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kiln_render-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.