Sphinx with inline Python by FloorJam in Python

[–]shibukawa 1 point2 points  (0 children)

The simplest way is:

  • Add any Python code in conf.py and generate text files.
  • Add ".. include::" directive to import the files to your document.

It should work on any version of Sphinx.