Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

RangeSlider

A dual-handle slider producing a [low, high] window.

Import

from manywidgets import RangeSlider

Example

from manywidgets import RangeSlider

RangeSlider(label="Magnitude", min=0, max=10, low=2, high=8, step=0.5)

API

TraitTypeDefaultDescription
lowFloat0.0Lower handle (kept <= high).
highFloat100.0Upper handle (kept >= low).
minFloat0.0Minimum value.
maxFloat100.0Maximum value.
stepFloat1.0Step size.
labelUnicode''Label shown above the slider.
widget_idUnicode''Stable unique id used for cross-widget linking (auto-assigned).

Linking

Link low/high like any trait (see the linking guide). Pairs with the lonboard FilterBinder (window → layer filter_range):

from ipywidgets import jsdlink
from manywidgets import RangeSlider, NumberDisplay

r = RangeSlider(min=0, max=100, low=10, high=90)
hi = NumberDisplay(label="High", duration=0)
jsdlink((r, "high"), (hi, "value"))