From: Dror Atariah <drorata@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [babel][table] Passing argument to Python code block using org-sbe
Date: Fri, 12 Sep 2014 09:26:31 +0200 [thread overview]
Message-ID: <CANfRcg1TvApZowvbLLq-_vJZms61iosK1rwZ8j4MJ6WGFSK8ZA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
Consider the following code:
-------------------------------------------------8<--------------------------------------------------
#+NAME: test
#+BEGIN_SRC python :var x="foobar"
return len(x)
#+END_SRC
-------------------------------------------------8<--------------------------------------------------
It is possible to call this, as follows:
-------------------------------------------------8<--------------------------------------------------
#+CALL: test(x="fb")
-------------------------------------------------8<--------------------------------------------------
However, I fail to call this function and pass an argument to it when using
org-sbe:
-------------------------------------------------8<--------------------------------------------------
| 6 | #ERROR |
#+TBLFM: @1$1='(org-sbe test)::@1$2='(org-sbe test (x ("fb")))
-------------------------------------------------8<--------------------------------------------------
I tried several possibilities, but nothing worked. Is it at all possible?
Thanks in advance,
Dror
PS: I posted also a SE question: http://stackoverflow.com/q/25789183/671013
[-- Attachment #2: Type: text/html, Size: 1580 bytes --]
reply other threads:[~2014-09-12 7:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CANfRcg1TvApZowvbLLq-_vJZms61iosK1rwZ8j4MJ6WGFSK8ZA@mail.gmail.com \
--to=drorata@gmail.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).