kevin lucas <lucaskevin...@gmail.com> writes:

> #+begin_src sage
> %gp primepi(666)
> #+end_src
>
> and get the result in my org buffer.
>
> I would like to have the ability to do something similar with
> multiline scripts, since Sage also provides interfaces for multiple
> lines via `%%` methods. When I try to use e.g. the one for R I get
> `UsageError: Line magic function `%%R` not found.`

Note that ob-sagemath is not a part of Org mode. It is an additional
package you need to install.
Did you try reaching out to the package maintainer?

> I unfortunately don't yet know enough elisp to get ob-sagemath to do
> this, so I'd appreciate any help getting these magic methods to work,
> or finding alternatives. Such an extension would let Babel support
> dozens more languages and programs without needing more packages, so I
> think this could be a valuable addition for many other Emacs users as
> well.

May you elaborate what you mean? Are you suggesting "magic lines" to
work in other babel backends (not sagemath)?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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