From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Bug: org-export-babel-evaluate causes everything to be exported [8.3.4 (release_8.3.4-824-ga02fe8)] Date: Fri, 20 May 2016 10:29:07 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3oEb-0006Ws-8h for emacs-orgmode@gnu.org; Fri, 20 May 2016 13:29:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3oEX-0003LT-2G for emacs-orgmode@gnu.org; Fri, 20 May 2016 13:29:12 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:35370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3oEW-0003Ks-Pp for emacs-orgmode@gnu.org; Fri, 20 May 2016 13:29:08 -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" To: Ken Mankoff Cc: emacs-org On Fri, 20 May 2016, Ken Mankoff wrote: > > On 2016-05-20 at 07:12, Ken Mankoff wrote: >> On 2016-05-19 at 23:33, Charles C. Berry wrote: >>> On Thu, 19 May 2016, Ken Mankoff wrote: >> >> (setq org-export-babel-evaluate t) >> >> #+BEGIN_SRC octave :exports results :cache nil >> "hello, world" >> #+END_SRC >> #+RESULTS: >> : hello, world >> >> Yes, the above appears to work. Really? I do not see the hash in your results block. > > But it doesn't work with sessions. Can you advise what settings to have how I can have the following code in an Org document: > > #+BEGIN_SRC python :results output :exports results :session foo :cache nil > print("hello, world") > #+END_SRC > #+RESULTS: > : hello, world > > And easily export that document without evaluating the code? `:cache yes' Of course, you must eval at least once with `:cache yes' to set the hash. Chuck p.s. I like to use stuff like : import time : print(time.strftime("%H:%M:%S")) in src blocks to do :cache experiments