text_extensions_for_pandas/jupyter/widget/core.py
def DataFrameWidgetComponent(widget: DataFrameWidget) -> ipw.Widget:
    """The base component of the dataframe widget"""
    # Create the render with a table.
    widget_components = [
        tep_table.DataFrameTableComponent(widget=widget),
    ]

    # Try to generate a document. Will return NoneType if there are no spans to render.
    documents_widget = tep_span.DataFrameDocumentContainerComponent(widget=widget)
    if documents_widget:
        document_output = ipw.Output()
        document_output.add_class("tep--dfwidget--document-output")
        widget._document_output = document_output
        widget_components.append(document_output)
        with document_output:
            display(documents_widget)

    # Create and return a root widget node for all created components.
    root_widget = ipw.VBox(children=widget_components)
    root_widget.add_class("tep--dfwidget--root-container")

    return root_widget
The base component of the dataframe widget
The base component of the dataframe widget
The base component of the dataframe widget
def DataFrameWidgetComponent(widget: DataFrameWidget) -> ipw.Widget:
    widget_components = [
        tep_table.DataFrameTableComponent(widget=widget),
    ]
    documents_widget = tep_span.DataFrameDocumentContainerComponent(widget=widget)
    if documents_widget:
        document_output = ipw.Output()
        document_output.add_class("tep--dfwidget--document-output")
        widget._document_output = document_output
        widget_components.append(document_output)
        with document_output:
            display(documents_widget)
    root_widget = ipw.VBox(children=widget_components)
    root_widget.add_class("tep--dfwidget--root-container")
    return root_widget
def DataFrameWidgetComponent ( widget : DataFrameWidget ) -> ipw . Widget : widget_components = [ tep_table . DataFrameTableComponent ( widget = widget ) , ] documents_widget = tep_span . DataFrameDocumentContainerComponent ( widget = widget ) if documents_widget : document_output = ipw . Output ( ) document_output . add_class ( "tep--dfwidget--document-output" ) widget . _document_output = document_output widget_components . append ( document_output ) with document_output : display ( documents_widget ) root_widget = ipw . VBox ( children = widget_components ) root_widget . add_class ( "tep--dfwidget--root-container" ) return root_widget
The base component of the dataframe widget
The base component of the dataframe widget
"""The base component of the dataframe widget""" # Create the render with a table. # Try to generate a document. Will return NoneType if there are no spans to render. # Create and return a root widget node for all created components.
widget
DataFrameWidget