From e9710082c72a451aa7a56f0ec3651f092d3e75fd Mon Sep 17 00:00:00 2001 From: Maciej Rapacz Date: Wed, 14 Aug 2024 21:27:00 +0200 Subject: [PATCH] Define dummy widgets to allow missing package information to properly propagate --- seaborn/widgets.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/seaborn/widgets.py b/seaborn/widgets.py index 502812af57..c01f75eb2f 100644 --- a/seaborn/widgets.py +++ b/seaborn/widgets.py @@ -9,6 +9,15 @@ def interact(f): msg = "Interactive palettes require `ipywidgets`, which is not installed." raise ImportError(msg) + class FloatSlider: + def __init__(self, *args, **kwargs): + pass + + class IntSlider: + def __init__(self, *args, **kwargs): + pass + + from .miscplot import palplot from .palettes import (color_palette, dark_palette, light_palette, diverging_palette, cubehelix_palette)