napari-metadata#
napari-metadata is a napari plugin that visually exposes the functionality of napari’s handling of layer metadata by directly connecting with the public API of napari layers.
[!NOTE] This plugin is in active development. You should not depend on any API, as it is likely to change. Instead, understand that this plugin intends to serve as a GUI to manage already available public API of napari layers. If you find a feature of this plugin useful, but it is not available in napari’s core API, please consider opening an issue here or in the napari repository.
Installation#
You can install napari-metadata from PyPI:
pip install napari-metadata
or from conda-forge:
conda install napari-metadata
Usage#
This plugin adds a dock widget to napari that allows you to view and edit metadata for each layer in your napari viewer. The widget is intended to be used in the typical vertical widget layout and additionally is designed to work great in a horizontal layout.

File Metadata#
The File Metadata section displays metadata related to the source of the layer, such as name, shape, dtype, and file size. All information except layer name is read-only.
Axes Metadata#
The Axes Metadata section allows you to view and edit metadata related to the axes of the layer, such as axis labels, transforms, scales, and units. You can modify these properties directly in the widget, and the changes will be reflected in the layer, and visa versa.
[!TIP] Layers can be linked using the napari layer context menu
Link Layers. Whenaxes metadatais changed in the widget, all linked layers will update theiraxes metadataaccordingly.
Axes Inheritance#
The Axes Inheritance widget can be used to propagate axes metadata from one layer to other layers. Select a template layer from the dropdown, and apply any axes metadata with checked boolean boxes to the currently active layer and any linked layers.
Contributing#
Contributions are very welcome! Please see the CONTRIBUTING.md file for details.
License#
Distributed under the terms of the BSD-3 license, “napari-metadata” is free and open source software