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¶
From pure Python to interactive napari widget — Start with a pure Python threshold function, convert it to a
magicguiwidget, and add interactive sliders with real-time updates.Building a segmentation pipeline — Add morphological cleaning, connected-component labeling, quantitative features (area, centroid), Points layer visualization, and watershed refinement.
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¶
Completing the installation instructions
Comfortable writing Python functions
Basic familiarity with NumPy and scientific Python libraries
Familiarity with the command line