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

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.1
File Size Uploaded Provenance Actions
interactive_pipe-0.10.1.tar.gz 587.9 kB With provenance Details for interactive_pipe-0.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 996.5 kB

Release files / interactive_pipe-0.10.1.tar.gz

Download URL interactive_pipe-0.10.1.tar.gz
Size 587.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1c901fe34ff23dde9ca18e020fd5f8dfda1c09ad16595d739700cfd8160c371e
BLAKE2b-256 checksum
How to use checksums
38c87fe5f51346b8afed87622e58d0eef14420a9914f5df93dcb3b1becab38ef
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.1-py3-none-any.whl

Download URL interactive_pipe-0.10.1-py3-none-any.whl
Size 408.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e26b268029b0914747da2703f393f924046ab90b8bd5c4641cb558239abfde56
BLAKE2b-256 checksum
How to use checksums
fa1e10ab6e8c9a0bf3f6c245a533f0502f9a69342847e5a4cdcd193cb94df60e
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.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.

Select from 2 files

Attestation for interactive_pipe-0.10.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 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.1 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