Re: Accessing Sagemath interpreters from Org Babel

2025-04-26 Thread Ihor Radchenko
kevin lucas 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. t

Accessing Sagemath interpreters from Org Babel

2025-04-19 Thread kevin lucas
I often use Sagemath within Org mode for my math notes, using the ob-sagemath package. Sage can provide an interface to many underlying interpreters, like GAP or Maxima, and I just figured out how to access these environments for single lines using `%` magic methods. So for example if I now need to