[Orgmode] How do you use call and lob in org-babel?
From:
Inquisitive Scientist
Subject:
[Orgmode] How do you use call and lob in org-babel?
Date:
Thu, 5 Aug 2010 09:24:46 -0400
Dear Experts,
I am confused about how to use lob and call in org-babel. First I define a simple function like square: #+srcname: square(x) #+begin_src python return x*x #+end_src
A line like
: #+lob: square(x=2) does not seem to produce any result either in the buffer or on export: #+lob: square(x=2)
The same seems to happen with call: : #+call: square(x=2) #+call: square(x=2)
Instead, to get things to work I need to do something like:
: | 4 | : #+TBLFM: @1$1='(sbe "square" (x 2)) to get: | 4 | #+TBLFM: @1$1='(sbe "square" (x 2))