Пример #1
0
    def _repr_html_(self):
        """used by ipython to make a better representation"""

        html = ""
        if self.__name is not None:
            html += "name:   '{}'</br>".format(self.__name)

        if self.__title is not None:
            html += "title:  '{}'</br>".format(self.__title)

        if self.__label is not None:
            html += "label:  '{}'</br>".format(self.__label)

        if self.__source is not None:
            html += "source: '{}'</br>".format(self.__label, self.__source)

        html += "size: {}</br>".format(len(self))
        lst = self.__dim_to_table()
        html += lst2html(lst)
        return html
Пример #2
0
    def _repr_html_(self):
        """used by ipython to make a better representation"""

        html = ""
        if self.__name is not None:
            html += "name:   '{}'</br>".format(self.__name)

        if self.__title is not None:
            html += "title:  '{}'</br>".format(self.__title)

        if self.__label is not None:
            html += "label:  '{}'</br>".format(self.__label)

        if self.__source is not None:
            html += "source: '{}'</br>".format(self.__label, self.__source)

        html += "size: {}</br>".format(len(self))
        lst = self.__dim_to_table()
        html += lst2html(lst)
        return html
Пример #3
0
 def _repr_html_(self):
     """used by jupyter to make a better representation into notebooks"""
     html = "JsonstatCollection contains the following JsonStatDataSet:</br>"
     lst = self.__to_table()
     html += lst2html(lst)
     return html
Пример #4
0
 def _repr_html_(self):
     """used by jupyter to make a better representation into notebooks"""
     html = "JsonstatCollection contains the following JsonStatDataSet:</br>"
     lst = self.__to_table()
     html += lst2html(lst)
     return html