emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dirk Scharff <dirk.scharff@googlemail.com>
To: emacs-orgmode list <emacs-orgmode@gnu.org>
Subject: [tables, babel] evaluate code block in table with arguments
Date: Tue, 26 Jul 2011 11:12:16 +0200	[thread overview]
Message-ID: <5F599375-0C23-4A35-B410-67FE91EBF7A4@googlemail.com> (raw)

Hi all,

I want to use a code-block in a table and can't get it to work. Consider the following example: 

--------------------------------------------------------
#+Source: the_test
#+begin_src python :var x=3 :results output
print x
#+end_src

| argument | argument | result |
|        1 |        1 | #ERROR |
|        2 |        2 |        |
#+TBLFM: $2=$<::$3=call_the_test(x=$<)
--------------------------------------------------------

How can I address the the argument on the left hand side of the table while calling a code block? If I do it like shown in the example (column 2) I get the following error:
"reference '$<' not found in this buffer".

Isn't this possible in org-mode or am I doing something wrong?

Regards,
Dirk.

             reply	other threads:[~2011-07-26  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26  9:12 Dirk Scharff [this message]
2011-07-26 12:12 ` [tables, babel] evaluate code block in table with arguments Sebastien Vauban
2011-07-26 13:53   ` Dirk Scharff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5F599375-0C23-4A35-B410-67FE91EBF7A4@googlemail.com \
    --to=dirk.scharff@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).