From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Only evaluate code blocks interactively, but export results Date: Sun, 5 Apr 2015 11:00:59 -0700 Message-ID: References: <0119590B-CC3F-4CAF-85E6-E736C6755AB2@block-party.net> Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1577195940-1428256860=:589" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yeor6-0007Xz-Ar for emacs-orgmode@gnu.org; Sun, 05 Apr 2015 14:01:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yeor3-0007jT-4X for emacs-orgmode@gnu.org; Sun, 05 Apr 2015 14:01:08 -0400 Received: from iport-bcv2-out.ucsd.edu ([132.239.0.73]:57573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yeor2-0007j8-Ri for emacs-orgmode@gnu.org; Sun, 05 Apr 2015 14:01:05 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Dynerman Cc: emacs-orgmode@gnu.org, "Thomas S. Dye" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1577195940-1428256860=:589 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT 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-export This will run interactively, but not on export. Instead the exported value of any previously saved `date' is exported. HTH, Chuck --0-1577195940-1428256860=:589--