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

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.2
File Size Uploaded Provenance Actions
interactive_pipe-0.10.2.tar.gz 643.4 kB With provenance Details for interactive_pipe-0.10.2.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / interactive_pipe-0.10.2.tar.gz

Download URL interactive_pipe-0.10.2.tar.gz
Size 643.4 kB
Tags Source
SHA-256 checksum
How to use checksums
648ece984853a3f947ff050046187e7d029472ebc65a8749bec87a367f9aad79
BLAKE2b-256 checksum
How to use checksums
b3fae323d417046a92f4c67fec91bde10d417548d529e35b1bc6737cb2551609
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 22, 2026.

Transparency log

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

Download URL interactive_pipe-0.10.2-py3-none-any.whl
Size 449.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58dd2804791e76b7bb1db18d17e49109a1a9d4b15a214e5a09b4ba5a40298533
BLAKE2b-256 checksum
How to use checksums
c405c5d7009118c841de158eca84943e087c48f38b8b3b29d6dd055efb3bd676
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 22, 2026.

Transparency log

Security for interactive-pipe 0.10.2

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.2.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 22, 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.2 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