Re: [O] Fwd: Fwd: run python from org, draft

2013-03-31 Thread Gary Oberbrunner
On Fri, Mar 29, 2013 at 4:58 PM, Andreas Röhler < andreas.roeh...@easy-emacs.de> wrote: > Am 29.03.2013 21:10, schrieb Gary Oberbrunner: > > On Fri, Mar 29, 2013 at 11:29 AM, Andreas Röhler < >> andreas.roeh...@easy-emacs.de> wrote: >> >> IMO org-babel should be able to run source code as is. >>

Re: [O] Fwd: Fwd: run python from org, draft

2013-03-29 Thread Andreas Röhler
Am 29.03.2013 21:10, schrieb Gary Oberbrunner: On Fri, Mar 29, 2013 at 11:29 AM, Andreas Röhler < andreas.roeh...@easy-emacs.de> wrote: IMO org-babel should be able to run source code as is. If an org-mode specific modification is required at such a trivial form, what to expect wrt complex envi

[O] Fwd: Fwd: run python from org, draft

2013-03-29 Thread Gary Oberbrunner
On Fri, Mar 29, 2013 at 11:35 AM, John Hendy wrote: > > This isn't working for me on Org-8.0 (from that Worg page): > > #+begin_src python :session > def foo(x): > if x>0: > return x+1 > else: > return x-1 > > foo(1) > #+end_src > > #+RESULTS: > : None > > Try applying my patch from t

[O] Fwd: Fwd: run python from org, draft

2013-03-29 Thread Gary Oberbrunner
On Fri, Mar 29, 2013 at 11:29 AM, Andreas Röhler < andreas.roeh...@easy-emacs.de> wrote: > IMO org-babel should be able to run source code as is. > If an org-mode specific modification is required at such a trivial form, > what to expect wrt complex environments? > > BTW this fails also: > > #+beg