From 485cf020c0fcf85f20af67c36c74bf85fc5cf6e5 2014-03-30 17:14:58 From: Brian E. Granger Date: 2014-03-30 17:14:58 Subject: [PATCH] Removing Core/display.py --- diff --git a/examples/Core/display.py b/examples/Core/display.py deleted file mode 100644 index 2d5ca50..0000000 --- a/examples/Core/display.py +++ /dev/null @@ -1,27 +0,0 @@ -"""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 "

Cirle: radius=%s

" % self.radius - - def _repr_svg_(self): - return """ - -""" - - def _repr_png_(self): - return latex_to_png('$\circle$')