Inspect in 3D¶
Place a cube window on the map, then orbit and slice image, labels and transcripts together.
import milume
w = milume.peek(sdata, image="mosaic", shapes="cell_boundaries_z") # press I, then click the tissue
w.volume_cut # cut-plane state after you slide the cross-section
Entering Inspect¶
Press I or click Inspect, then click the tissue to place a cube window. The top pill shows the window size, Save window and Exit Inspect (Esc).
Inspect toolbar¶
| Control | What it does | |
|---|---|---|
| 1 | Top / Iso / Side | Snap the camera to a top, oblique or side view. |
| 2 | Move | Drag to pan the cube window on the map. |
| Reset view | Return the cube camera to its default. | |
| 3 | Image | Show or hide the image layer. Right-click for palette, contrast, alpha, gamma and projection. |
| 4 | Labels | Show or hide the cell meshes. Right-click for their opacity. |
| 5 | Points | Show or hide the points layer. |
| Cross-section | Slide a cut plane through the cube. |
Cross-section¶
See Synced traitlets for Inspect fields, and Constructor parameters for image= / shapes= on milume.peek. With several 3D images, pass image= to pick one. Stores without per-slice cell polygons (e.g. Xenium / CosMx) open Inspect image-only, with no cells; 2D image plus polygon rendering is tracked in #122.
Cell meshes run in an inline Web Worker. Strict notebook Content-Security-Policies must allow worker-src blob: (the defaults in JupyterLab and VS Code already do).