pyplot-style convenience layer for Plotly Dash — build interactive apps top-to-bottom with no boilerplate.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
938f3694345c337aa4f4e37b5c3578f6e3f3164ddf6373beadf8adb1f790dda5
|
|
| MD5 |
8e6012b5afa5c35905a2aceed5ce676d
|
|
| BLAKE2b-256 |
59e05ae6a9c2a20f3d86751d50073b1081fb9d3877a60b10c422935249a1a205
|
Provenance
The following attestation bundles were made for dash_interact-0.0.1.tar.gz:
Publisher:
publish.yml on saemeon/dash-interact
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dash_interact-0.0.1.tar.gz -
Subject digest:
938f3694345c337aa4f4e37b5c3578f6e3f3164ddf6373beadf8adb1f790dda5 - Sigstore transparency entry: 1186304939
- Sigstore integration time:
-
Permalink:
saemeon/dash-interact@a6ebc749a31d1e815252ff5d9d750ebb845c9e7b -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/saemeon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a6ebc749a31d1e815252ff5d9d750ebb845c9e7b -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1993e2d0984ed9ba5378db14c02466861c30395b3e9b335e328a9979a28c6960
|
|
| MD5 |
8046f85936c3e5f09f413f06df53a879
|
|
| BLAKE2b-256 |
9317aa24651609a0ae5f140e9abadd509c9fd1f6212f42668c70a5a1bdd6a089
|
Provenance
The following attestation bundles were made for dash_interact-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on saemeon/dash-interact
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dash_interact-0.0.1-py3-none-any.whl -
Subject digest:
1993e2d0984ed9ba5378db14c02466861c30395b3e9b335e328a9979a28c6960 - Sigstore transparency entry: 1186304940
- Sigstore integration time:
-
Permalink:
saemeon/dash-interact@a6ebc749a31d1e815252ff5d9d750ebb845c9e7b -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/saemeon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a6ebc749a31d1e815252ff5d9d750ebb845c9e7b -
Trigger Event:
release
-
Statement type: