This documentation covers a development version of IPython. The development version may differ significantly from the latest stable release.
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.
If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).
Simple magics for display formats
- class IPython.core.magics.display.DisplayMagics(**kwargs: Any)¶
Magics for displaying various output types with literals
- html(line, cell)¶
Render the cell as a block of HTML
Annotate the cell as ‘isolated’. Isolated cells are rendered inside their own <iframe> tag
- js(line, cell)¶
- latex(line, cell)¶
Render the cell as a block of LaTeX
The subset of LaTeX which is supported depends on the implementation in the client. In the Jupyter Notebook, this magic only renders the subset of LaTeX defined by MathJax [here](https://docs.mathjax.org/en/v2.5-latest/tex.html).
- markdown(line, cell)¶
Render the cell as Markdown text block
- svg(line, cell)¶
Render the cell as an SVG literal