code: def _repr_html_(self):
          
          # qtconsole doesn't report its line width, and also
          # behaves badly when outputting an HTML table
          # that doesn't fit the window, so disable it.
          # XXX: In IPython 3.x and above, the Qt console will not attempt to
          # display HTML, so this check can be removed when support for IPython 2.x
          # is no longer needed.
  
          if self._pandas and options.display.notebook_repr_widget:
              from .. import DataFrame
              from ..ui import show_df_widget
              show_df_widget(DataFrame(self._values, schema=self.schema))
  
          if self._pandas:
              return self._values._repr_html_()
  
          if in_qtconsole():
              # 'HTML output is disabled in QtConsole'
              return None
  
          if options.display.notebook_repr_html:
              max_rows = options.display.max_rows
              max_cols = options.display.max_columns
              show_dimensions = options.display.show_dimensions
  
              return self.to_html(max_rows=max_rows, max_cols=max_cols,
                                  show_dimensions=show_dimensions,
                                  notebook=True)
          else:
              return None
docs: Return a html representation for a particular DataFrame.
          Mainly for IPython notebook.