Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Overview

Level: Intermediate | Duration: 90 minutes | Python required

This workshop is a fast-paced tour through what napari can do for interactive image and data analysis. Starting from pure-Python functions, you will progressively integrate it with napari using magicgui widgets, customize parameters with annotated sliders, compute quantitative features and do some interactive classification — all without leaving napari’s GUI.

By the end, you will have built complete interactive segmentation and classification workflows, and know how to turn them into a reusable plugins.

Workshop modules

  1. From pure Python to interactive napari widget — Start with a pure Python threshold function, convert it to a magicgui widget, and add interactive sliders with real-time updates.

  2. Building a segmentation pipeline — Add morphological cleaning, connected-component labeling, quantitative features (area, centroid), Points layer visualization, and watershed refinement.

  3. Adding interactive classification and going 3D — Make a new widget for interactively classifying objects based on their features, and then run the entire pipeline on 3D data with zero code changes.

Prerequisites