code: def _repr_html_(self):
          
          model_details = [['<b>Model</b>', self.name + '<br>'],
                           ['<b>Objective</b>', '{}<br>'.format(float(self.objective_function()))],
                           ["<b>Number of Parameters</b>", '{}<br>'.format(self.size)],
                           ["<b>Number of Optimization Parameters</b>", '{}<br>'.format(self._size_transformed())],
                           ["<b>Updates</b>", '{}<br>'.format(self._update_on)],
                           ]
          from operator import itemgetter
          to_print = ["""<style type="text/css">
  .pd{
      font-family: "Courier New", Courier, monospace !important;
      width: 100%;
      padding: 3px;
  }
  </style>\n"""] + ["<p class=pd>"] + ["{}: {}".format(name, detail) for name, detail in model_details] + ["</p>"]
          to_print.append(super(Model, self)._repr_html_())
          return "\n".join(to_print)
docs: Representation of the model in html for notebook display.