A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: revert breaking change in mo.ui.slider (#1237)
Myles Scolnick4f4a54eaa672
diff --git a/marimo/_plugins/ui/_impl/input.py b/marimo/_plugins/ui/_impl/input.pyindex 867e59901b..1a948329d9 100644--- a/marimo/_plugins/ui/_impl/input.py+++ b/marimo/_plugins/ui/_impl/input.py@@ -142,14 +142,14 @@ class slider(UIElement[Numeric, Numeric]):- `start`: the minimum value of the interval- `stop`: the maximum value of the interval- `step`: the slider increment- - `steps`: list of steps to customize the slider, mutually exclusive- with `start`, `stop`, and `step`- `value`: default value- `debounce`: whether to debounce the slider to only sendthe value on mouse-up or drag-end- `orientation`: the orientation of the slider,either "horizontal" or "vertical"- `show_value`: whether to display the current value of the slider+ - `steps`: list of steps to customize the slider, mutually exclusive+ with `start`, `stop`, and `step`- `label`: text label for the element- `on_change`: optional callback to run when this element's value changes- `full_width`: whether the input should take up the full width of its@@ -164,11 +164,11 @@ class slider(UIElement[Numeric, Numeric]):start: Optional[Numeric] = None,stop: Optional[Numeric] = None,step: Optional[Numeric] = None,- steps: Optional[Sequence[Numeric]] = None,value: Optional[Numeric] = None,debounce: bool = False,orientation: Literal["horizontal", "vertical"] = "horizontal",show_value: bool = False,+ steps: Optional[Sequence[Numeric]] = None,*,label: str = "",on_change: Optional[Callable[[Optional[Numeric]], None]] = None,@@ -310,14 +310,14 @@ class range_slider(UIElement[List[Numeric], Sequence[Numeric]]):- `start`: the minimum value of the interval- `stop`: the maximum value of the interval- `step`: the slider increment- - `steps`: list of steps to customize the slider, mutually exclusive- with `start`, `stop`, and `step`- `value`: default value- `debounce`: whether to debounce the slider to only sendthe value on mouse-up or drag-end- `orientation`: the orientation of the slider,either "horizontal" or "vertical"- `show_value`: whether to display the current value of the slider+ - `steps`: list of steps to customize the slider, mutually exclusive+ with `start`, `stop`, and `step`- `label`: text label for the element- `on_change`: optional callback to run when this element's value changes- `full_width`: whether the input should take up the full width of its@@ -332,11 +332,11 @@ class range_slider(UIElement[List[Numeric], Sequence[Numeric]]):start: Optional[Numeric] = None,stop: Optional[Numeric] = None,step: Optional[Numeric] = None,- steps: Optional[Sequence[Numeric]] = None,value: Optional[Sequence[Numeric]] = None,debounce: bool = False,orientation: Literal["horizontal", "vertical"] = "horizontal",show_value: bool = False,+ steps: Optional[Sequence[Numeric]] = None,*,label: str = "",on_change: Optional[Callable[[Sequence[Numeric]], None]] = None,