from manywidgets import NumberInput
NumberInput(label="Count", min=0, max=100, step=5, value=10)API¶
| Trait | Type | Default | Description |
|---|---|---|---|
value | Float | 0.0 | Current value. |
min | Float | None | Optional minimum. |
max | Float | None | Optional maximum. |
step | Float | 1.0 | Step size. |
label | Unicode | '' | Label shown above the input. |
widget_id | Unicode | '' | Stable unique id used for cross-widget linking (auto-assigned). |
Linking¶
Link like any widget (see the linking guide):
from ipywidgets import jsdlink
from manywidgets import Chart, NumberInput
chart = Chart()
w = NumberInput(label="Width", min=200, max=1200, value=800)
jsdlink((w, "value"), (chart, "width"))