emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel][table] Passing argument to Python code block using org-sbe
@ 2014-09-12  7:26 Dror Atariah
  0 siblings, 0 replies; only message in thread
From: Dror Atariah @ 2014-09-12  7:26 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-12  7:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12  7:26 [babel][table] Passing argument to Python code block using org-sbe Dror Atariah

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).