|
From: | Charles C. Berry |
Subject: | Re: [O] Only evaluate code blocks interactively, but export results |
Date: | Sun, 5 Apr 2015 11:00:59 -0700 |
User-agent: | Alpine 2.00 (OSX 1167 2008-08-23) |
On Sat, 4 Apr 2015, David Dynerman wrote:
Hi Tom, Does :cache yes work with #+CALL lines? I’m not able to get it to work.I’m calling my function through #+CALL’s because I’d like to generate several figures from the same org-babel code block/I tried adding :cache yes to: 1) The actual org-code block 2) The +CALL line, at the end 3) The +CALL line, before the argument list (i.e., my_python_function[:cache yes](…))None of these worked - the code was still re-evaluated when I exported the file, although the +RESULTS line got a hash value.Thank you very much, David
David, Does this help? #+NAME: timenow #+BEGIN_SRC sh date #+END_SRC #+CALL: timenow[:eval never-export]() :eval never-exportThis will run interactively, but not on export. Instead the exported value of any previously saved `date' is exported.
HTH, Chuck
[Prev in Thread] | Current Thread | [Next in Thread] |