"""Code that shows off the IPython display logic. """ from IPython.lib.latextools import latex_to_png from IPython.core.display import ( display, display_pretty, display_html, display_svg, display_json, display_png ) class Circle(object): def __init__(self, radius): self.radius = radius def _repr_pretty_(self, p, cycle): p.text(u"\u25CB") def _repr_html_(self): return "