Skip to main content

interactive_pipe

Turn plain python processing functions into an interactive GUI app — without writing a single line of GUI code.

pip install interactive-pipe
  • Develop an algorithm while debugging visually with plots, checking robustness and continuity to parameter changes.
  • Magically create a graphical interface to demonstrate a concept or tune your algorithm.
  • Keep your algorithm library untouched: interactivity is added by decoration, not by rewriting.
  • The same pipeline runs headless for batch processing and tests.

Interactive pipe demo

Quick taste

from interactive_pipe import interactive, interactive_pipeline
import numpy as np


@interactive(coeff=(1.0, [0.5, 2.0], "exposure"), bias=(0.0, [-0.2, 0.2]))
def exposure(img, coeff=1.0, bias=0.0):
    return img * coeff + bias


@interactive(blend_coeff=(0.5, [0.0, 1.0]))
def blend(img0, img1, blend_coeff=0.5):
    return (1 - blend_coeff) * img0 + blend_coeff * img1


@interactive_pipeline(gui="qt")  # or "dpg" (Dear PyGui), "mpl", "nb" (Jupyter/Colab), "gradio"
def pipe(img):
    exposed = exposure(img)
    blended = blend(img, exposed)
    return exposed, blended


pipe(np.array([0.0, 0.5, 0.8]) * np.ones((256, 512, 3)))

Calling pipe(...) opens a window with sliders for every declared parameter. 🎉

Features

  • Controls from type hints: gain: Annotated[float, (0.0, 3.0)] = 1.0 is a slider, Literal["dark", "light"] a dropdown — or declare them in @interactive(...).
  • Figures and overlays: return a matplotlib Figure, a heatmap with a colorbar, or draw boxes, points and masks with interactive_pipe.draw.
  • Mouse input: PointControl / RegionControl — click a point or shift-drag a region on an image.
  • Video inputs: my_pipeline(Video("clip.mp4")) — the pipeline written for one frame gets a timeline (play / pause, scrub, step); videos from files, image folders, numpy arrays, torch tensors or generators.
  • Snapshots and sweeps: pipe.snapshot("out.png", img, coeff=1.5) renders what the window shows, pipe.sweep("sweep.png", img, coeff=[0.5, 1.0, 2.0]) compares values side by side — no display needed (SSH, CI, agents).
  • Command line: interactive-pipe check | snapshot | sweep | describe my_script.py on an unmodified GUI script; interactive-pipe doctor explains why no window shows up.
  • Coding agents: interactive-pipe skill --install teaches Claude Code (or any agent, interactive-pipe skill) to build pipelines and check them by reading snapshots.

A sweep rendered headless

A blob detector swept over two parameters with interactive-pipe sweep, from the scientific gallery.

Backends

PyQt / PySide Matplotlib Jupyter / Colab Gradio
gui="qt" gui="mpl" gui="nb" gui="gradio"
qt mpl nb gradio

Plus a GPU-rendered Dear PyGui window (gui="dpg", pip install "interactive-pipe[dpg]") and headless mode (gui=None) for batch processing. Full feature matrix in the backends docs.

Learn more

Metadata

Release files for interactive-pipe 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for interactive-pipe 0.10.0
File Size Uploaded Provenance Actions
interactive_pipe-0.10.0.tar.gz 569.3 kB With provenance Details for interactive_pipe-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for interactive-pipe 0.10.0
File Interpreter ABI Platform Actions
interactive_pipe-0.10.0-py3-none-any.whl Python 3 none any Details for interactive_pipe-0.10.0-py3-none-any.whl

Total release size: 963.5 kB

Release files / interactive_pipe-0.10.0.tar.gz

Download URL interactive_pipe-0.10.0.tar.gz
Size 569.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1e0397231173bdaf43223cda1d63d70ad9471b66bb557eda70f5f538eb810cd1
BLAKE2b-256 checksum
How to use checksums
4a648c46f69be570942be5af990c4ede7992faee2e51d6d2011ef0e17f2a6500
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 Nov 21, 2026.

Transparency log

Release files / interactive_pipe-0.10.0-py3-none-any.whl

Download URL interactive_pipe-0.10.0-py3-none-any.whl
Size 394.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14561b58409d03d9b5df244ae9e665762e8e2e547085c17b4855f5524ba738d1
BLAKE2b-256 checksum
How to use checksums
bd65c01eb21d0aa1885c15b9c19525f1f759d6b96ef5975a0b05b09dd19f5195
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 Nov 21, 2026.

Transparency log

Security for interactive-pipe 0.10.0

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.

Select from 2 files

Attestation for interactive_pipe-0.10.0.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 Nov 21, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page