code: def display(self):
          
          from IPython.core.display import display, HTML
          display(HTML(self._repr_html_()))
docs: Display the visualization inline in the IPython notebook.
  
          This is deprecated, use the following instead::
  
              from IPython.display import display
              display(viz)