Skip to content

web, app, ml & hist

import lucem
lucem.web.dist_dir() # Path to bundled WASM dist/
lucem.web.serve(data="./slides", port=8080, open_browser=True)

CLI shortcut: uv run lucem web --data ./slides --open

import lucem
lucem.app.program() # Path to lucem-app binary
lucem.app.open("slide.ome.zarr") # Launches the desktop workstation

CLI shortcut: uv run lucem app slide.ome.zarr

lucem.ml (lucem[stardist], lucem[sam], lucem[instanseg], lucem[ml])

Section titled “lucem.ml (lucem[stardist], lucem[sam], lucem[instanseg], lucem[ml])”
import lucem
lucem.ml.plugin_dirs() # Directories scanned for lucem-ml-* programs
lucem.ml.plugins() # Discovered plugins, runtimes, and model manifests

CLI shortcut: uv run lucem plugins

Installs the histology-enabled native extension so stain deconvolution, tissue detection, cell counting, and session replay run directly from Python on the same GPU context.