Thanks Ken, that works great! With session as a file property (#+PROPERTY:
header-args:python :session foo) the inline expressions aren't even _all_
that verbose. And I can use arbitrary python, not just math. Very nice!

On Wed, Feb 3, 2016 at 11:09 AM, Eric S Fraga <e.fr...@ucl.ac.uk> wrote:

> On Wednesday,  3 Feb 2016 at 08:45, Gary Oberbrunner wrote:
>
> [...]
>
> > Of course I made up that {{{}}} syntax, that's not a real thing. I've
> seen
> > org-mode tables with calc, but I'm hoping for something simpler, just
> > inline math expression eval. (I'm fine with elisp, calc, whatever.)
>
> As Ken has shown¸ you can use babel for inline evaluation.  Note that
> Emacs calc is one of the languages supported by babel so src_calc(2*pi)
> works as well.  I'm not sure how you define variables in calc however...
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa
>



-- 
Gary

Reply via email to