Module pandas_profiling.report.presentation.flavours.widget.html

Expand source code
from ipywidgets import widgets

from pandas_profiling.report.presentation.core.html import HTML


class WidgetHTML(HTML):
    def render(self):
        if type(self.content["html"]) != str:
            return self.content["html"]
        else:
            return widgets.HTML(self.content["html"])

Classes

class WidgetHTML (content, **kwargs)

Helper class that provides a standard way to create an ABC using inheritance.

Expand source code
class WidgetHTML(HTML):
    def render(self):
        if type(self.content["html"]) != str:
            return self.content["html"]
        else:
            return widgets.HTML(self.content["html"])

Ancestors

Methods

def render(self)
Expand source code
def render(self):
    if type(self.content["html"]) != str:
        return self.content["html"]
    else:
        return widgets.HTML(self.content["html"])