Fractal Task Launcher

Install and run Fractal tasks on OME-Zarr images in napari

  • Daniel Krentzel, Ruth Hornbachner

Fractal Task Launcher

napari-fractal-tasks logo

PyPI Python Version License MIT tests napari hub

A napari plugin to install and run Fractal tasks locally on OME-Zarr images. Tasks can either be installed from the Fractal task catalog or from tarball files (.tar.gz).

width=200

Usage

Installation

The napari-fractal-tasks plugin requires pixi, which installs each task package in its own environment. Install pixi first; it is not installed together with the plugin.

To add the plugin to an existing napari, install napari-fractal-tasks from napari's plugin manager (Plugins > Install/Uninstall Plugins) or with pip:

pip install napari-fractal-tasks

To run the plugin from its source code instead, open the terminal and run the following commands:

git clone https://github.com/krentzd/napari-fractal-tasks
cd napari-fractal-tasks
pixi run napari

Running Fractal tasks

Watch the video

  1. Load task packages either from the Fractal task catalog, or upload your own local task as a .tar.gz file by clicking on Manage packages.
  2. Open an OME-Zarr file using the napari-ome-zarr plugin by drag-and-drop.
  3. Select and add a task from the Task widget. Run your task on one image, several images or a whole plate, and interatively tune parameters of the task.
  4. Explore different parameter settings interactively in the napari viewer. Results are written back to the OME-Zarr file and opened in the viewer once the task finishes.
  5. Export the parameters and directly load them into the fractal-server.

Tips

  • Parameter settings exported via the fractal-server can be directly imported for a given task.

  • Workflows can also run headless e.g. in a Jupyter notebook (see examples).

  • Restrict a task to a region of interest (ROI):

    1. Click Add Shapes Layer for ROI selection and draw a polygon.
    2. Name the table under ROI Table Name (select Overwrite to replace an existing one).
    3. Click Save ROIs to table.

Notes:

  • Requires Python 3.11+ or higher.
  • First install of a task package can take several minutes. Installing the same version again reuses the cached environment and takes about a second.
  • Disk space: each (package, version) is a separate environment. Everything lives in ~/.napari_fractal_tasks.

Test data

  • Segmentation: 20200812-CardiomyocyteDifferentiation14-Cycle1_mip.zarr (Zenodo).
  • Registration: 220605_151046_mip.zarr (Zenodo), a two-cycle multiplexed plate (DAPI is A04_C01 in both cycles).

Current limitations

Converter tasks are not supported. The data already needs to be in OME-Zarr file format.

How to cite

The prototype was started at the 2024 OME-NGFF workflows hackathon and developed further at the 2025 and 2026 hackathons.

@article{luthi20252024,
  title={2024 OME-NGFF workflows hackathon},
  author={L{\"u}thi, Joel and Albert, Marvin and Anita, Liviu and Babalola, Kola and Bennett, Davis and Bogovic, John A and Cerrone, Lorenzo and Dornier, R{\'e}my and Eglinger, Jan and Galinova, Vera and others},
  year={2025},
  publisher={OSF}
}

License

The code and text are under the MIT license.

Version:

  • 0.1.3

Last updated:

  • 2026-11-06

First released:

  • 2026-11-06

License:

  • MIT

Supported data:

  • Information not submitted

Plugin type:

Open extension:

Save extension:

Python versions supported:

3.11, 3.12, 3.13

Operating system:

  • Information not submitted

Requirements:

  • numpy
  • packaging
  • qtpy
  • ngio<0.5,>=0.4
  • napari
  • napari-ome-zarr
  • tox; extra == "testing"
  • pytest; extra == "testing"
  • pytest-cov; extra == "testing"
  • pytest-qt; extra == "testing"
  • pooch; extra == "testing"
Website by the napari team, original design by CZI.