def METHOD_NAME(o, name):
    """Make widgets from single values, which can be used as parameter defaults."""
    if isinstance(o, str):
        return TextInput(value=str(o), name=name)
    elif isinstance(o, bool):
        return Checkbox(value=o, name=name)
    elif isinstance(o, Integral):
        min, max, value = _get_min_max_value(None, None, o)
        return IntSlider(value=o, start=min, end=max, name=name)
    elif isinstance(o, Real):
        min, max, value = _get_min_max_value(None, None, o)
        return FloatSlider(value=o, start=min, end=max, name=name)
    else:
        return None