IPython Documentation

Table Of Contents

Previous topic

Module: core.magics.deprecated

Next topic

Module: core.magics.execution

This Page

Module: core.magics.display

Simple magics for display formats

1 Class

class IPython.core.magics.display.DisplayMagics(shell)

Bases: IPython.core.magic.Magics

Magics for displaying various output types with literals

Defines javascript/latex/svg/html cell magics for writing blocks in those languages, to be rendered in the frontend.

html(line, cell)

Render the cell as a block of HTML

javascript(line, cell)

Run the cell block of Javascript code

latex(line, cell)

Render the cell as a block of latex

svg(line, cell)

Render the cell as an SVG literal