wxyz.datagrid

Lumino DataGrid widgets powered by pandas and JSON Table Schema

class wxyz.datagrid.CellRenderer(**kwargs)[source]

Bases: wxyz.datagrid.base.DataGridBase

[0.1.6]/cellrenderer.ts#L29

class wxyz.datagrid.DataGrid(**kwargs)[source]

Bases: wxyz.datagrid.base.DataGridBase, ipywidgets.widgets.widget_box.Box

An (overly) opinionated DataFrame-backed datagrid [0.1.6]/datagrid.ts#L64

Used JSONModel, which expect JSON Table Schema [0.1.6]/jsonmodel.ts#L21

class wxyz.datagrid.FixedFunc(**kwargs)[source]

Bases: wxyz.datagrid.widget_stylegrid.FormatFunc

[0.1.6]/textrenderer.ts#L365

class wxyz.datagrid.FormatFunc(**kwargs)[source]

Bases: wxyz.datagrid.base.DataGridBase

[0.1.6]/textrenderer.ts#L308

class wxyz.datagrid.GridStyle(**kwargs)[source]

Bases: ipywidgets.widgets.widget.Widget

JSON-compatible Lumino DataGrid styles.

class wxyz.datagrid.SelectGrid(**kwargs)[source]

Bases: wxyz.datagrid.widget_stylegrid.StyleGrid

A styled grid with selections

class wxyz.datagrid.StyleGrid(**kwargs)[source]

Bases: wxyz.datagrid.widget_datagrid.DataGrid

A styled grid

[0.1.6]/datagrid.ts#L64

class wxyz.datagrid.TextRenderer(**kwargs)[source]

Bases: wxyz.datagrid.widget_stylegrid.CellRenderer

[0.1.6]/textrenderer.ts#L21

Classes

digraph "classes_datagrid" { graph [fontname = "sans-serif"]; node [fontname = "sans-serif"]; edge [fontname = "sans-serif"]; charset="utf-8" rankdir=BT "0" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/base.py.DataGridBase|_model_module : Unicode\l_model_module_version : Unicode\l_view_module : Unicode\l_view_module_version : Unicode\l|}", shape="record"]; "1" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/widget_datagrid.py.DataGrid|_model_name\l_view_name\lvalue\l|_repr_keys()\l}", shape="record"]; "2" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/widget_selectgrid.py.SelectGrid|_model_name\l_view_name\lhover_column\lhover_row\lmax_x\lmax_y\lscroll_x\lscroll_y\lselection\lselections\lviewport\l|}", shape="record"]; "3" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/widget_stylegrid.py.CellRenderer|_model_module : Unicode\l_model_module_version : Unicode\l_model_name : Unicode\l_view_module : Unicode\l_view_module_version : Unicode\lmetadata : Dict\lregion : Unicode\l|}", shape="record"]; "4" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/widget_stylegrid.py.FixedFunc|_model_name : Unicode\ldigits : Int\lmissing : Unicode\l|}", shape="record"]; "5" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/widget_stylegrid.py.FormatFunc|_model_name : Unicode\l|}", shape="record"]; "6" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/widget_stylegrid.py.GridStyle|_model_module : Unicode\l_model_module_version : Unicode\l_model_name : Unicode\lbackgroundColor : Unicode\lcolumnBackgroundColor : Union\lcursorBorderColor : Unicode\lcursorFillColor : Unicode\lgridLineColor : Unicode\lheaderBackgroundColor : Unicode\lheaderGridLineColor : Unicode\lheaderHorizontalGridLineColor : Unicode\lheaderSelectionBorderColor : Unicode\lheaderSelectionFillColor : Unicode\lheaderVerticalGridLineColor : Unicode\lhorizontalGridLineColor : Unicode\lrowBackgroundColor : Union\lscrollShadow : Dict\lselectionBorderColor : Unicode\lselectionFillColor : Unicode\lverticalGridLineColor : Unicode\lvoidColor : Unicode\l|}", shape="record"]; "7" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/widget_stylegrid.py.StyleGrid|_model_name : Unicode\l_view_name : Unicode\lcell_renderers : TraitType\lcolumn_header_size : Int\lcolumn_size : Int\lgrid_style\lheader_visibility : Enum\lrow_header_size : Int\lrow_size : Int\l|}", shape="record"]; "8" [label="{/home/runner/work/wxyz/wxyz/envs/_base/lib/python3.8/site-packages/wxyz/datagrid/widget_stylegrid.py.TextRenderer|_model_name : Unicode\lbackground_color\lfont : Unicode\lformat_func : TraitType\lhorizontal_alignment : Unicode\ltext_color\lvertical_alignment : Unicode\l|}", shape="record"]; "9" [label="{ipywidgets.widgets.widget.LoggingHasTraits|log : Instance\l|_log_default()\l}", shape="record"]; "10" [label="{ipywidgets.widgets.widget.Widget|_display_callbacks : Instance\l_holding_sync : bool\l_holding_sync : bool\l_ipython_display_ : NoneType\l_model_id\l_model_module : Unicode\l_model_module_version : Unicode\l_model_name : Unicode\l_msg_callbacks : Instance\l_property_lock : Dict\l_property_lock : dict\l_states_to_send : Set\l_view_count : Int\l_view_module : Unicode\l_view_module_version : Unicode\l_view_name : Unicode\l_widget_construction_callback : NoneType\lcomm : Comm, NoneType\lcomm : Instance\lkeys : List\lmodel_id\lwidget_types : WidgetRegistry\lwidgets : dict\l|__del__()\l__init__()\l__repr__()\l_call_widget_constructed(widget)\l_comm_changed(change)\l_compare(a, b)\l_default_keys()\l_gen_repr_from_keys(keys)\l_get_embed_state(drop_defaults)\l_handle_custom_msg(content, buffers)\l_handle_displayed()\l_handle_msg(msg)\l_ipython_display_()\l_is_numpy(x)\l_lock_property()\l_repr_keys()\l_send(msg, buffers)\l_should_send_property(key, value)\l_trait_from_json(x)\l_trait_to_json(x)\ladd_traits()\lclose()\lclose_all(cls)\lget_manager_state(drop_defaults, widgets)\lget_state(key, drop_defaults)\lget_view_spec()\lhandle_comm_opened(comm, msg)\lhold_sync()\lnotify_change(change)\lon_displayed(callback, remove)\lon_msg(callback, remove)\lon_widget_constructed(callback)\lopen()\lsend(content, buffers)\lsend_state(key)\lset_state(sync_data)\l}", shape="record"]; "11" [label="{traitlets.traitlets.HasDescriptors|\l|__new__()\lsetup_instance()\l}", shape="record"]; "12" [label="{traitlets.traitlets.HasTraits|__class__\l__dict__\l_cross_validation_lock : bool\l_trait_notifiers : dict\lcross_validation_lock\lnotify_change\l|__getstate__()\l__init__()\l__setstate__(state)\l_add_notifiers(handler, name, type)\l_get_trait_default_generator(name)\l_notify_observers(event)\l_notify_trait(name, old_value, new_value)\l_register_validator(handler, names)\l_remove_notifiers(handler, name, type)\ladd_traits()\lclass_own_trait_events(cls, name)\lclass_own_traits(cls)\lclass_trait_names(cls)\lclass_traits(cls)\lhas_trait(name)\lhold_trait_notifications()\lnotify_change(change)\lobserve(handler, names, type)\lon_trait_change(handler, name, remove)\lset_trait(name, value)\lsetup_instance()\ltrait_defaults()\ltrait_events(cls, name)\ltrait_has_value(name)\ltrait_metadata(traitname, key, default)\ltrait_names()\ltrait_values()\ltraits()\lunobserve(handler, names, type)\lunobserve_all(name)\l}", shape="record"]; "13" [label="{wxyz.core.base.Base|_model_module : Unicode\l_model_module_version : Unicode\l_view_module : Unicode\l_view_module_version : Unicode\lclosable : Bool\ldescription : Unicode\lerror : CUnicode\licon_class : Unicode\l|}", shape="record"]; "14" [label="{wxyz.core.base.WXYZBase|_model_module : Unicode\l_model_module_version : Unicode\l_view_module : Unicode\l_view_module_version : Unicode\l|}", shape="record"]; "0" -> "13" [arrowhead="empty", arrowtail="none"]; "4" -> "5" [arrowhead="empty", arrowtail="none"]; "6" -> "10" [arrowhead="empty", arrowtail="none"]; "8" -> "3" [arrowhead="empty", arrowtail="none"]; "9" -> "12" [arrowhead="empty", arrowtail="none"]; "10" -> "9" [arrowhead="empty", arrowtail="none"]; "12" -> "11" [arrowhead="empty", arrowtail="none"]; "13" -> "14" [arrowhead="empty", arrowtail="none"]; "14" -> "10" [arrowhead="empty", arrowtail="none"]; }