From mboxrd@z Thu Jan 1 00:00:00 1970 From: Inquisitive Scientist Subject: How do you use call and lob in org-babel? Date: Thu, 5 Aug 2010 09:24:46 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0644381007==" Return-path: Received: from [140.186.70.92] (port=52191 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oh212-0002wS-FA for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 11:05:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oh210-0003aC-Mj for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 11:05:52 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:52603) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh210-0003a0-KR for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 11:05:50 -0400 Received: by yxs7 with SMTP id 7so3405111yxs.0 for ; Thu, 05 Aug 2010 08:05:50 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0644381007== Content-Type: multipart/alternative; boundary=0016e644029a58178a048d137917 --0016e644029a58178a048d137917 Content-Type: text/plain; charset=ISO-8859-1 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)) Thanks, -I.S. --0016e644029a58178a048d137917 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear Experts,

I am confused about how to use lob and call in org-bab= el. 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=3D2)
does not seem to produce any result either in the= buffer or on export:
#+lob: square(x=3D2)

The same seems to happ= en with call:
: #+call: square(x=3D2)
#+call: square(x=3D2)

In= stead, to get things to work I need to do something like:
: | 4 |
: #+TBLFM: @1$1=3D'(sbe "square" (x 2))
to get:=
| 4 |
#+TBLFM: @1$1=3D'(sbe "square" (x 2))

Tha= nks,
-I.S.
--0016e644029a58178a048d137917-- --===============0644381007== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0644381007==--