napari-afmslicer
A simple plugin to use AFMSlicer with napari
This napari plugin was generated with copier using the napari-plugin-template.
Installation
NB - For detailed instructions in installation of napari-afmslicer and AFMSlicer see the AFMSlicer Installation information.
Virtual Environments
napari-afmslicer is developed using the uv package manager and it is recommended as a fast and simple to use tool
for creating and managing virtual environments.
cd ~/path/to/work
mkdir afmslicer-work
cd afmslicer-work
uv venv
Installation from PyPI
You can install napari-afmslicer via pip:
pip install napari-afmslicer
If napari is not already installed, you can install napari-afmslicer with napari and Qt via:
pip install "napari-afmslicer[all]"
To install latest development version :
pip install git+https://github.com/AFM-SPM/napari-afmslicer.git
Installation from Napari
You can install napari-afmslicer from the Napari Hub from within Napari itself. After having launched
Napari
Git Clone
You can clone and install the napari-afmslicer within the virtual environment of your choice. First clone the repository
git clone git@github.com:AFM-SPM/napari-afmslicer.git # If you have SSH keys configured on GitHub
git clone https://github.com/AFM-SPM/napari-afmslicer.git # If you don't have SSh keys configured on GitHub
Then install it within a virtual environment, the following creates a uv environment within the clone directory and installs all plugins and developer optiosn
cd napari-afmslicer
uv venv
uv sync
uv pip install -e .[extras,all] --group dev
Usage
Once installed you can launch napari from the command line.
napari
The resulting widgets implemented in this package can be found under the Plugins > AFMSlicer menu. Selecting each brings up a "widget" on the right hand side of the window (by default). There are the following widgets.
- AFMSlicer 3D Viewer
- AFMSlicer Filtering
- AFMSlicer Slicing
From each of the widgets configuration options can be toggled that change the settings for running/processing the image. Clicking on the Run button at the bottom of any of these should result in a new Layer being displayed in Napari that show the effects of processing the selected image.
You can optionally start all napari AFMSlicer widgets with the following...
napari -w napari-afmslicer __all__
The screenshot below shows a 3D view of a scan. and the widget tabs for filtering and slicing are on the bottom right of the screen.
Additional Plugins
Because AFMSlicer uses some of the functionality of TopoStats the napari-TopoStats and napari-AFMReader plugins are included as a dependency and installed when napari-AFMSlicer is installed.
There are a lot of [napari plugins] available though, some of which are particularly useful for the AFMSlicer
workflow. These will be installed if you use the optional dependency group extras when installing napari-afmslicer
with the following.
uv pip install -e ".[extras]"
After launching Napari you will find these plugins listed under the "Plugin" menu.
The additional plugins that will be installed are...
NB - If you encounter problems with these plugins please report them up-stream at the GitHub repository for the plugin rather than here.
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the GNU GPL v3.0 license, "napari-afmslicer" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for napari-afmslicer 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| napari_afmslicer-0.0.1.tar.gz | 715.4 kB | With provenance | Details for napari_afmslicer-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| napari_afmslicer-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for napari_afmslicer-0.0.1-py3-none-any.whl |
Total release size: 749.1 kB
Release files / napari_afmslicer-0.0.1.tar.gz
| Download URL | napari_afmslicer-0.0.1.tar.gz |
|---|---|
| Size | 715.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
436f756f3645ae629be414f968026c9e5bf23317f324ba80292eaa96b7a6a7ae
|
|
BLAKE2b-256 checksum How to use checksums |
8e45a79e08e090fc444f157f364e8bfc2d4e8cdaf6ddaf30d4b6fc15b7d7b149
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / napari_afmslicer-0.0.1-py3-none-any.whl
| Download URL | napari_afmslicer-0.0.1-py3-none-any.whl |
|---|---|
| Size | 33.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f16498052b871826fc16d1a462a0f43ee16dff65ed3e5852cba1c25bc6291ba1
|
|
BLAKE2b-256 checksum How to use checksums |
8bdd71090433a7158739bad2aff77aee33e8a25b8a6c6c8b3315a78fcad02605
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for napari-afmslicer 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for napari_afmslicer-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.