MCPcopy Create free account
hub / github.com/ipython/ipython / latex

Method latex

IPython/core/magics/display.py:49–56  ·  view source on GitHub ↗

Render the cell as a block of latex The subset of latex which is support 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).

(self, line, cell)

Source from the content-addressed store, hash-verified

47
48 @cell_magic
49 def latex(self, line, cell):
50 """Render the cell as a block of latex
51
52 The subset of latex which is support depends on the implementation in
53 the client. In the Jupyter Notebook, this magic only renders the subset
54 of latex defined by MathJax
55 [here](https://docs.mathjax.org/en/v2.5-latest/tex.html)."""
56 display(Latex(cell))
57
58 @cell_magic
59 def svg(self, line, cell):

Callers

nothing calls this directly

Calls 2

displayFunction · 0.90
LatexClass · 0.90

Tested by

no test coverage detected