emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: David Dynerman <david@block-party.net>
Cc: emacs-orgmode@gnu.org, "Thomas S. Dye" <tsd@tsdye.com>
Subject: Re: Only evaluate code blocks interactively, but export results
Date: Sun, 5 Apr 2015 11:00:59 -0700	[thread overview]
Message-ID: <alpine.OSX.2.00.1504051058080.589@charles-berrys-macbook.local> (raw)
In-Reply-To: <BE278CB1-DA23-472F-9A13-0174AEB3059B@block-party.net>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 891 bytes --]

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

      reply	other threads:[~2015-04-05 18:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-04 17:03 Only evaluate code blocks interactively, but export results David Dynerman
2015-04-04 17:15 ` Thomas S. Dye
2015-04-04 18:55   ` David Dynerman
2015-04-05 18:00     ` Charles C. Berry [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.OSX.2.00.1504051058080.589@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=david@block-party.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).