Jack Kamm <jackk...@gmail.com> writes: > So I am thinking now about how we could make this more extensible in > future. One idea is to create a Python package for interfacing with Org > Babel, and release it on PyPi. If we detect the package is installed, > then we can delegate to it for results formatting. And the community > could contribute results handling for all sorts of Python objects to > that package. > > That is just one idea for improving extensibility -- I'm not sure it's > the best, and am open to other suggestions as well.
Similar to the existing LaTeX formatters, one may write a Python package that will pretty-print Org markup as text. Not just for Org babel - it might be useful in general. And we do not need to support such formatters explicitly in ob-python. Users can simply arrange to call the formatters in their code blocks by the usual means. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>