web, app, ml & hist
lucem.web (lucem[web])
Section titled “lucem.web (lucem[web])”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
lucem.app (lucem[app])
Section titled “lucem.app (lucem[app])”import lucem
lucem.app.program() # Path to lucem-app binarylucem.app.open("slide.ome.zarr") # Launches the desktop workstationCLI 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-* programslucem.ml.plugins() # Discovered plugins, runtimes, and model manifestsCLI shortcut: uv run lucem plugins
lucem.hist (lucem[hist])
Section titled “lucem.hist (lucem[hist])”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.