You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the initial, large not quite MVP implementation of ndev-workflows.
It is backwards compatible with napari-workflows, but is improved with yaml readability, safe loading, missing dependency warnings, and a clear spec-to-workflow interface. It includes the workflow widget from napari-ndev for viewer and batch processing of workflow files
Copilot was used to help set up the architecture, but I did most of the work implementing the actual functionality. Unfortunately, I do not really have the understanding yet for WorkflowManager and UndoRedo to know why it exists, so for now its less validated. Copilot generated most of the tests, but they were at least eye ball checked.
This [napari] plugin was generated with [copier] using the [napari-plugin-template] (2.0.1).
21
19
22
-
and review the napari docs for plugin developers:
23
-
https://napari.org/stable/plugins/index.html
24
-
-->
20
+
## What is ndev-workflows?
25
21
26
-
## Installation
22
+
`ndev-workflows` is the workflow backend for napari image processing pipelines. It's a **drop-in replacement** for [napari-workflows](https://github.com/haesleinhuepf/napari-workflows) by Robert Haase, with these key improvements:
23
+
24
+
-**Safe YAML loading** — Uses `yaml.safe_load()` (no arbitrary code execution)
25
+
-**Backwards compatible** — Automatically loads and migrates legacy napari-workflows files, and detects missing dependencies
26
+
-**Same API** — Most code works without changes
27
+
-**Future-ready** — Designed for upcoming npe2 workflow contributions (WIP), without relying on npe1, napari-time-slicer, and napari-tools-menu for interactivity
28
+
29
+
---
27
30
28
-
You can install `ndev-workflows` via [pip]:
31
+
## Installation
29
32
30
33
```bash
31
34
pip install ndev-workflows
@@ -37,41 +40,132 @@ If napari is not already installed, you can install `ndev-workflows` with napari
37
40
pip install "ndev-workflows[all]"
38
41
```
39
42
43
+
---
44
+
45
+
## Quick Start
46
+
47
+
```python
48
+
from ndev_workflows import Workflow, save_workflow, load_workflow
"napari-segment-blobs-and-things-with-membranes", # TODO: adds 76 transient dependencies, yuck. currently for legacy/current sample test workflows. will try to remove in future
0 commit comments