Skip to content

Commit 512a731

Browse files
author
Matthias Bussonnier
committed
fiix Custom display solution
1 parent 0ca7f18 commit 512a731

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

soln/mycircle.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ def __init__(self, center=(0.0,0.0), radius=1.0, color='blue'):
88
def _repr_html_(self):
99
return "&#x25CB; (<b>html</b>)"
1010

11-
def _repr_svg_(self):
12-
return """<svg width="100px" height="100px">
13-
<circle cx="50" cy="50" r="20" stroke="black" stroke-width="1" fill="blue"/>
14-
</svg>"""
11+
# Let's ignore that for now due to a bug in JupyterLab
12+
# def _repr_svg_(self):
13+
# return """<svg width="100px" height="100px">
14+
# <circle cx="50" cy="50" r="20" stroke="black" stroke-width="1" fill="blue"/>
15+
# </svg>"""
1516

1617
def _repr_latex_(self):
1718
return r"$\bigcirc \LaTeX$"
18-
19-
def _repr_javascript_(self):
20-
return "alert('I am a circle!');"

0 commit comments

Comments
 (0)