Re: [O] [babel] sbe not working properly (resolved)

2013-04-13 Thread Karl Voit
* Christian Moe wrote: > > Hi, Hi! > I cannot replicate Karl's problem. I copied the code examples, and got > the right results on Org 8.0-pre (pulled this morning). > > I did have to make one change -- Babel wouldn't recognize the variables > until I passed them with :var rather than in parens

Re: [O] [babel] sbe not working properly

2013-04-12 Thread Eric Schulte
Christian Moe writes: > Hi, > > I cannot replicate Karl's problem. I copied the code examples, and got > the right results on Org 8.0-pre (pulled this morning). > > I did have to make one change -- Babel wouldn't recognize the variables > until I passed them with :var rather than in parens after

Re: [O] [babel] sbe not working properly

2013-04-11 Thread Christian Moe
Hi, I cannot replicate Karl's problem. I copied the code examples, and got the right results on Org 8.0-pre (pulled this morning). I did have to make one change -- Babel wouldn't recognize the variables until I passed them with :var rather than in parens after the codeblock name. (I saw there wa

Re: [O] [babel] sbe not working properly

2013-04-11 Thread Darlan Cavalcante Moreira
I have my own difficulties using sbe and decided to try your example. I even created the shell babel block below which does the same think as the python code #+NAME: epoch2dayshell(epoch=1) #+begin_src sh echo `date --d @$epoch -u +"[%F %a %T]"` #+end_src but I g

[O] [babel] sbe not working properly

2013-04-11 Thread Karl Voit
Hi! I want to define a babel function named epoch2day which I am able to use in a table to convert UNIX epoch times to Org-mode time stamps: #+NAME: epoch2day(epoch=1) #+BEGIN_SRC python :results output time = epoch import datetime strtime = str(time)