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.
  • 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.9.5

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.9.5
File Size Uploaded Provenance Actions
interactive_pipe-0.9.5.tar.gz 523.0 kB With provenance Details for interactive_pipe-0.9.5.tar.gz

Built distribution (wheel)

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

Total release size: 877.1 kB

Release files / interactive_pipe-0.9.5.tar.gz

Download URL interactive_pipe-0.9.5.tar.gz
Size 523.0 kB
Tags Source
SHA-256 checksum
How to use checksums
91f58cc5dd4b2ab994e5e4f21e07ac958817f2630802fc07ea2b39e78071190a
BLAKE2b-256 checksum
How to use checksums
aaf1b52de3d65af84d7f54ebedc6d80b2ae2cd61358697c71765920a6eeefc86
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 19, 2026.

Transparency log

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

Download URL interactive_pipe-0.9.5-py3-none-any.whl
Size 354.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e99cfd27dd78c8c68af3a94adfdbae1aa7433dadb92c698e71130b5e16317357
BLAKE2b-256 checksum
How to use checksums
2f61747da6966582940c7e36df19858cd9b7e0b78abb82c5d79dd04ea5b43625
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 19, 2026.

Transparency log

Security for interactive-pipe 0.9.5

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.9.5.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 19, 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.9.5 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