
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
The napari plugin engine version 2, npe2 extends the functionality of napari's core. The plugin ecosystem offers user additional functionality for napari as well as specific support for different scientific domains.
This repo contains all source code and documentation required for defining, validating and managing plugins for napari.
The napari plugin docs landing page offers comprehensive information for plugin users and for plugin developers.
For plugin users, the docs include information about:
For plugin developers, the docs cover topics like:
Try the napari plugin template to streamline development of a new plugin.
The npe2
command line tool can be installed with pip
or conda
, but will already be installed as a dependency if you have napari installed.
If you are new to using virtual environments, visit our virtual environments guide.
```bash
python3 -m venv .venv
source .venv/bin/activate
```
2. Install npe2.
```bash
pip install npe2
```
3. Test your installation.
```bash
npe2 --help
```
Create and activate a virtual environment.
conda create -n npe-test -c conda-forge python=3.12
conda activate npe-test
Install npe2.
conda install npe2
Test your installation.
npe2 --help
The command line tool npe2
offers the following commands:
cache Cache utils
compile Compile @npe2.implements contributions to generate a manifest.
convert Convert first generation napari plugin to new (manifest) format.
fetch Fetch manifest from remote package.
list List currently installed plugins.
parse Show parsed manifest as yaml.
validate Validate manifest for a distribution name or manifest filepath.
List currently installed plugins:
npe2 list
Compile a source directory to create a plugin manifest:
npe2 compile PATH_TO_SOURCE_DIRECTORY
Convert current directory to an npe2-ready plugin (note: the repo must also be installed and importable in the current environment.):
npe2 convert .
Validate a plugin package. For example, a plugin named your-plugin-package
:
npe2 validate your-plugin-package
Show a parsed manifest of your plugin:
npe2 parse your-plugin-package
npe2 uses the BSD License.
This repo replaces the initial napari plugin engine v1. See also https://github.com/napari/napari/issues/3115 for motivation and technical discussion about the creation of v2.
Visit our community documentation or open a new issue on this repo.
FAQs
napari plugin engine v2
We found that npe2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.