[O] [tables, babel] evaluate code block in table with arguments

2011-07-26 Thread Dirk Scharff
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 |

Re: [O] [tables, babel] evaluate code block in table with arguments

2011-07-26 Thread Sebastien Vauban
Hi Dirk, Dirk Scharff wrote: I want to use a code-block in a table and can't get it to work. [...] Isn't this possible in org-mode or am I doing something wrong? Use `sbe' to make calls inside tables; see http://osdir.com/ml/emacs-orgmode-gnu/2011-07/msg00540.html Best regards, Seb --

Re: [O] [tables, babel] evaluate code block in table with arguments

2011-07-26 Thread Dirk Scharff
Hi Sebastien, thanks for pointing me to that macro. $3='(sbe the_test( x $ )) does exactly what I wanted. best regards, Dirk On Tue, Jul 26, 2011 at 2:12 PM, Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: Hi Dirk, Dirk Scharff wrote: I want to use a code-block in a table and can't