Show More
@@ -12,7 +12,7 b'' | |||
|
12 | 12 | #----------------------------------------------------------------------------- |
|
13 | 13 | |
|
14 | 14 | # Our own packages |
|
15 | from IPython.core.display import display, Javascript, Latex, SVG | |
|
15 | from IPython.core.display import display, Javascript, Latex, SVG, HTML | |
|
16 | 16 | from IPython.core.magic import ( |
|
17 | 17 | Magics, magics_class, cell_magic |
|
18 | 18 | ) |
@@ -45,3 +45,8 b' class DisplayMagics(Magics):' | |||
|
45 | 45 | def svg(self, line, cell): |
|
46 | 46 | """Render the cell as an SVG literal""" |
|
47 | 47 | display(SVG(cell)) |
|
48 | ||
|
49 | @cell_magic | |
|
50 | def html(self, line, cell): | |
|
51 | """Render the cell as an SVG literal""" | |
|
52 | display(HTML(cell)) |
General Comments 0
You need to be logged in to leave comments.
Login now