def _repr_html_(self):
from .utilities import tabulate_module_summary
return tabulate_module_summary(self, tablefmt="html")
def _repr_pretty_(self, p, cycle):
from .utilities import tabulate_module_summary
After Change
Nice representation of GPflow objects in IPython/Jupyter notebooks
from html import escape
return self._representation_table(escape(repr(self)), "html")
def _repr_pretty_(self, p, cycle):
Nice representation of GPflow objects in the IPython shell
repr_str = self._representation_table(repr(self), default_summary_fmt())