pyfeyn2 2.1.1 documentation

PyFeyn2

Forked from https://pyfeyn.hepforge.org/

FeynML from https://feynml.hepforge.org/

PyFeyn is a Python-language based system for drawing Feynman diagrams. It was inspired by the C++ FeynDiagram system, and aims to provide the same functionality and quality of output as that, with the added benefits of a modern interpreted language, an improved interface and output direct to both EPS and PDF. Behind the scenes, PyFeyn uses the excellent PyX system - you can use PyX constructs in PyFeyn diagrams if you want, too.

PyPI version PyPI version downloads

Stable

Test

workflow

test

Coverage Status

Coverage Status

Codacy Badge

Codacy Badge

Codacy Badge

Codacy Badge

Documentation

Documentation

Dependencies

  • libmagickwand-dev (to display pdfs in a jupyter-notebook, might require a policy change of the imagemagick config for PDFs, see Troubleshooting)

  • ghostscript

  • latexmk

  • (feynmp-auto/feynmf)

Installation

poerty install --with docs --with dev
poetry shell

Documentation

Similar Feynman diagram rendering project:

Several of these are integrated into pyfeyn2.

Troubleshooting

Development

package/python structure:

pyfeyn2

PyFeyn2: A Python package for drawing Feynman diagrams.

Indices and tables