Skip to main content

pyplot-style convenience layer for Plotly Dash — build interactive apps top-to-bottom with no boilerplate.

Project description

PyPI Python License Dash Ruff uv ty prek

dash-interact

pyplot-style convenience layer for Plotly Dash — build interactive apps top-to-bottom with no boilerplate.

Installation

pip install dash-interact

Quick example

from dash_interact import page

page.H1("My App")

@page.interact
def sine_wave(amplitude: float = 1.0, frequency: float = 2.0):
    import numpy as np, plotly.graph_objects as go
    x = np.linspace(0, 6 * np.pi, 600)
    return go.Figure(go.Scatter(x=x, y=amplitude * np.sin(frequency * x)))

page.run()

The page API

page works like matplotlib.pyplot — a module-level singleton that accumulates content.

from dash_interact import page

page.H1("Title")          # adds html.H1
page.Hr()                 # adds html.Hr
@page.interact            # adds an interact panel
def my_fn(...): ...
page.run()                # builds the Dash app and starts the server

The interact family

Three levels mirroring ipywidgets:

from dash_interact import interact, interactive, interactive_output

# 1. Fire and forget — attaches to the current page
@interact
def plot(amplitude: float = 1.0): ...

# 2. Embeddable — place it yourself
panel = interactive(plot, amplitude=(0, 2, 0.1))

# 3. Fully decoupled — pre-built form, separate output
form = FnForm("plot", plot)
output = interactive_output(plot, form)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dash_interact-0.0.1.tar.gz (613.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dash_interact-0.0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file dash_interact-0.0.1.tar.gz.

File metadata

  • Download URL: dash_interact-0.0.1.tar.gz
  • Upload date:
  • Size: 613.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dash_interact-0.0.1.tar.gz
Algorithm Hash digest
SHA256 938f3694345c337aa4f4e37b5c3578f6e3f3164ddf6373beadf8adb1f790dda5
MD5 8e6012b5afa5c35905a2aceed5ce676d
BLAKE2b-256 59e05ae6a9c2a20f3d86751d50073b1081fb9d3877a60b10c422935249a1a205

See more details on using hashes here.

Provenance

The following attestation bundles were made for dash_interact-0.0.1.tar.gz:

Publisher: publish.yml on saemeon/dash-interact

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dash_interact-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dash_interact-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dash_interact-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1993e2d0984ed9ba5378db14c02466861c30395b3e9b335e328a9979a28c6960
MD5 8046f85936c3e5f09f413f06df53a879
BLAKE2b-256 9317aa24651609a0ae5f140e9abadd509c9fd1f6212f42668c70a5a1bdd6a089

See more details on using hashes here.

Provenance

The following attestation bundles were made for dash_interact-0.0.1-py3-none-any.whl:

Publisher: publish.yml on saemeon/dash-interact

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page