From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: restarting an org-babel session? Date: Thu, 19 Mar 2015 07:47:39 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYeY4-0000KI-Ve for emacs-orgmode@gnu.org; Thu, 19 Mar 2015 13:48:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYeY0-0007ao-Pr for emacs-orgmode@gnu.org; Thu, 19 Mar 2015 13:48:00 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:33490) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YYeY0-0007a1-JB for emacs-orgmode@gnu.org; Thu, 19 Mar 2015 13:47:56 -0400 In-Reply-To: (Ken Mankoff's message of "Thu, 19 Mar 2015 13:31:35 -0400") 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: Ken Mankoff Cc: Org Mode , John Kitchin Ken Mankoff writes: > On 2015-03-19 at 10:26, John Kitchin wrote: >> Is it possible to restart an org-babel session from the current point? >> What I mean is if you have a largish org-file with many session blocks, >> and you want to go the end and continue it, you need to run each session >> block before the end to recreate the "session". > > I am surprised there is no easy way to have an Org file run every code > block in order either on command or on export. It seems like this > would be a key component of reproducible research and literate > documents. > > Maybe there is a way, but it isn't mentioned in the "Evaluating code > blocks" section of the manual. > > -k. Would org-babel-execute-buffer work? ,-------------------------------------------------------------------- | org-babel-execute-buffer is an interactive autoloaded compiled Lisp | function in `ob-core.el'. | | (org-babel-execute-buffer &optional ARG) | | Execute source code blocks in a buffer. | Call `org-babel-execute-src-block' on every source block in | the current buffer. `-------------------------------------------------------------------- hth, Tom -- Thomas S. Dye http://www.tsdye.com