docs: def _repr_html_(self, **kwargs):
          """Displays the Figure in a Jupyter notebook.
  
          """
          html = self.render(**kwargs)
          html = "data:text/html;charset=utf-8;base64," + base64.b64encode(html.encode('utf8')).decode('utf8')  # noqa
  
          if self.height is None:
              iframe = (
              '<div style="width:{width};">'
              '<div style="position:relative;width:100%;height:0;padding-bottom:{ratio};">'  # noqa
              '<iframe src="{html}" style="position:absolute;width:100%;height:100%;left:0;top:0;'  # noqa
              'border:none !important;" '
              'allowfullscreen webkitallowfullscreen mozallowfullscreen>'
              '</iframe>'
              '</div></div>').format
              iframe = iframe(html=html,
                              width=self.width,
                              ratio=self.ratio)
          else:
              iframe = ('<iframe src="{html}" width="{width}" height="{height}"'
                        'style="border:none !important;" '
                        '"allowfullscreen" "webkitallowfullscreen" "mozallowfullscreen">'  # noqa
                        '</iframe>').format
              iframe = iframe(html=html, width=self.width, height=self.height)
          return iframe