Alternatives§

magic_call is not the only Python library to execute external commands. There are a lot of tools that do similar things. Most, however, are less generic than magic_call.

The following list is in alphabetic order. If you know further projects to add here, please add them with a PR or create an issue.

diagmagic.py§

Magics for using blockdiag.com modules with IPython Notebook The module provides magics: %%actdiag, %%blockdiag, %%nwdiag, %%seqdiag

Related to https://bitbucket.org/vladf/ipython-diags (dead link)?

Graphviz§

This package facilitates the creation and rendering of graph descriptions in the DOT language of the Graphviz graph drawing software from Python. … Graphs can also be rendered and displayed within Jupyter notebooks

https://graphviz.readthedocs.io/

IPlantUML§

A Python package which defines a PlantUML cell magic for IPython.

https://github.com/jbn/IPlantUML

ipy_magics§

The enclosed Python 3 modules define a number of “cell magics” for use in an IPython notebook. … %%csound [Csound] … %%ps [PostScript] … %%rman [RenderMan]

https://github.com/ldo/ipy_magics

ipython-asymptote§

IPython extension for rendering and displaying asymptote in an IPython notebook

https://github.com/jrjohansson/ipython-asymptote

ipython-hierarchymagic§

%hierarchy and %%dot magics for IPython

https://github.com/tkf/ipython-hierarchymagic

IPython.lib.latextools§

Tools for handling LaTeX.

https://ipython.readthedocs.io/en/stable/api/generated/IPython.lib.latextools.html

ipython-magic§

Graphviz Magics

https://github.com/cjdrake/ipython-magic

ipython-tikzmagic§

IPython magics for generating figures with TikZ. You can select the output format as svg, png or jpg, define the image size, specify a scale factor, load TikZ packages, and save to external files.

https://github.com/mkrphys/ipython-tikzmagic

itikz§

Cell magic for PGF/TikZ-to-SVG rendering in Jupyter

https://github.com/jbn/itikz

jupyter_abc§

This extension makes it easy to render ABC markup as graphical music notation in a Jupyter notebook.

For rendering, the extension uses the abcjs Javascript library by Paul Rosen and Gregory Dyke.

https://github.com/akaihola/jupyter_abc

latex§

Allows calling LaTeX from Python without leaving a mess.

https://pythonhosted.org/latex/

https://github.com/mbr/latex

latex_fragment§

render a latex fragment as a PNG in jupyter notebooks

https://github.com/danmackinlay/latex_fragment

plasTeX§

plasTeX is a LaTeX document processing framework written entirely in Python. It currently comes bundled with an XHTML renderer (including multiple themes), as well as a way to simply dump the document to a generic form of XML. Other renderers can be added as well and are planned for future releases.

http://plastex.github.io/plastex/

https://github.com/plastex/plastex

PyLaTeX§

PyLaTeX is a Python library for creating and compiling LaTeX files or snippets. The goal of this library is being an easy, but extensible interface between Python and LaTeX.

https://jeltef.github.io/PyLaTeX/

https://github.com/JelteF/PyLaTeX

PyTeX§

We’ve given TeX a Python callable function interface, with the TeX daemon running behind the scenes. This is proof of concept, but might already be useful.

http://www.pytex.org/

PyX§

PyX is a Python package for the creation of PostScript, PDF, and SVG files. It combines an abstraction of the PostScript drawing model with a TeX/LaTeX interface. Complex tasks like 2d and 3d plots in publication-ready quality are built out of these primitives.

http://pyx.sourceforge.net/

ReportLab§

ReportLab is the time-proven, ultra-robust open-source engine for creating complex, data-driven PDF documents and custom vector graphics. It’s free, open-source, and written in Python.

https://www.reportlab.com/opensource/

runlatex§

Routines to help run LaTeX builds.

https://github.com/brendano/runlatex

https://github.com/brendano/runlatex/blob/master/runlatex.py

Sage LaTeX printing support§

https://doc.sagemath.org/html/en/reference/misc/sage/misc/latex.html

https://github.com/sagemath/sage/blob/master/src/sage/misc/latex.py

Texcaller§

Texcaller is a convenient interface to the TeX command line tools.

https://vog.github.io/texcaller/

Successor to the obsolete Python-tex package (https://pypi.org/project/tex/).