Hi Dan,
On Thu, Oct 8, 2009 at 4:11 PM, Dan Davison davi...@stats.ox.ac.uk wrote:
Juan Reyero joa...@gmail.com writes:
#+begin_src python :session :results output
2
#+end_src
#+resname:
: 2
: 2
(expected nothing, which is what I get if I remove the :session).
An understandable
Eric,
Thanks a lot for your quick response. I have tried your suggestion
and it does work, but it behaves in an unexpected way when I do some
minor modifications. Please see below.
On Wed, Oct 7, 2009 at 8:48 PM, Eric Schulte schulte.e...@gmail.com wrote:
I am trying to define buffer-wide
Hi,
On Wed, Oct 7, 2009 at 9:17 PM, Eric Schulte schulte.e...@gmail.com wrote:
As you described below the :session environment can be used to deal with
the need for required stage setting source-code blocks, however there
is currently no way when directly executing a block to specify that some
Juan Reyero joa...@gmail.com writes:
[...]
--8---cut here---start-8---
** persistent python
#+begin_src python :session :results silent
import types
#+end_src
#+begin_src python :session
types.FunctionType
#+end_src
#+resname:
: function
Greetings,
I am trying to define buffer-wide initializations in org-babel, so that I
can import a python module once and then use its exported symbols in all the
code chunks throughout the buffer. Is there a way to do it? I have tried
all the obvious approaches and none seems to work. (My hope
Juan Reyero joa...@gmail.com writes:
Greetings,
Hi,
I am trying to define buffer-wide initializations in org-babel, so that I can
import a python module once
and then use its exported symbols in all the code chunks throughout the
buffer. Is there a way to do it?
I have tried all the
Hi,
This brings up a need for further Org-babel development.
As you described below the :session environment can be used to deal with
the need for required stage setting source-code blocks, however there
is currently no way when directly executing a block to specify that some
other block in the