emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ob-python results handling for dicts, dataframes, arrays, an


From: Ihor Radchenko
Subject: Re: [PATCH] ob-python results handling for dicts, dataframes, arrays, and plots
Date: Sat, 19 Aug 2023 08:50:21 +0000

Jack Kamm <jackkamm@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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]