From d99b8ea31f2e23fd9c663d5b7fb3de396725a21b Mon Sep 17 00:00:00 2001 From: Thomas Dye Date: Fri, 4 Jan 2013 05:40:32 -1000 Subject: [PATCH] Changed python call--thanks to George Jones for catching this. --- org-contrib/babel/intro.org | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/org-contrib/babel/intro.org b/org-contrib/babel/intro.org index 30c9b5f..9cf4e0e 100644 --- a/org-contrib/babel/intro.org +++ b/org-contrib/babel/intro.org @@ -464,13 +464,15 @@ value, =(2 + 2)=, 4 does not appear in the results. First let's look at a very simple example. The following source code block defines a function, using python, that squares its argument. -#+name: square(x=0) +#+name: square +#+header: :var x=0 #+begin_src python return x*x #+end_src In the Org-mode file, the function looks like this: -: #+name: square(x) +: #+name: square +: #+header: :var x=0 : #+begin_src python : return x*x : #+end_src @@ -486,6 +488,7 @@ Now we use the source block: #+results: square(x=6) : 36 + *** A more complex example using an Org-mode table as input In this example we define a function called =fibonacci-seq=, using -- 1.7.2.5