def _get_widget_ui_value(widget_type, element, user_key=None):
    "Get the widget ui_value from the report context.\n    NOTE: This function should be called after the proto has been filled.\n\n    Parameters\n    ----------\n    widget_type : str\n        The type of the widget as stored in proto.\n    element : proto\n        The proto of the element\n    user_key : str\n        Optional user-specified string to use as the widget ID.\n        If this is None, we'll generate an ID by hashing the element.\n\n    Returns\n    -------\n    ui_value : any\n        The value of the widget set by the client or\n        the default value passed. If the report context\n        doesn't exist, None will be returned.\n\n    "
    _set_widget_id(widget_type, element, user_key)
    el = getattr(element, widget_type)
    ctx = get_report_ctx()
    ui_value = (ctx.widgets.get_widget_value(el.id) if ctx else None)
    return ui_value
Get the widget ui_value from the report context.
NOTE: This function should be called after the proto has been filled.

Parameters
----------
widget_type : str
    The type of the widget as stored in proto.
element : proto
    The proto of the element
user_key : str
    Optional user-specified string to use as the widget ID.
    If this is None, we'll generate an ID by hashing the element.

Returns
-------
ui_value : any
    The value of the widget set by the client or
    the default value passed. If the report context
    doesn't exist, None will be returned.
def _get_widget_ui_value(widget_type, element, user_key=None):
    "Get the widget ui_value from the report context.\n    NOTE: This function should be called after the proto has been filled.\n\n    Parameters\n    ----------\n    widget_type : str\n        The type of the widget as stored in proto.\n    element : proto\n        The proto of the element\n    user_key : str\n        Optional user-specified string to use as the widget ID.\n        If this is None, we'll generate an ID by hashing the element.\n\n    Returns\n    -------\n    ui_value : any\n        The value of the widget set by the client or\n        the default value passed. If the report context\n        doesn't exist, None will be returned.\n\n    "
    _set_widget_id(widget_type, element, user_key)
    el = getattr(element, widget_type)
    ctx = get_report_ctx()
    ui_value = (ctx.widgets.get_widget_value(el.id) if ctx else None)
    return ui_value