File size: 840 Bytes
fc0f7bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

"""Defines the python side of the shared state of the fairlearn widget."""

import ipywidgets as widgets
from traitlets import Unicode, Dict


@widgets.register
class FairlearnWidget(widgets.DOMWidget):
    """The python widget definition for the fairlearn dashboard."""

    _view_name = Unicode('FairlearnView').tag(sync=True)
    _model_name = Unicode('FairlearnModel').tag(sync=True)
    _view_module = Unicode('fairlearn-widget').tag(sync=True)
    _model_module = Unicode('fairlearn-widget').tag(sync=True)
    _view_module_version = Unicode('^0.1.1').tag(sync=True)
    _model_module_version = Unicode('^0.1.1').tag(sync=True)
    value = Dict().tag(sync=True)
    request = Dict({}).tag(sync=True)
    response = Dict({}).tag(sync=True)