From: John Kitchin <jkitchin@andrew.cmu.edu>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Org Mode <emacs-orgmode@gnu.org>, Ken Mankoff <mankoff@gmail.com>
Subject: Re: restarting an org-babel session?
Date: Thu, 19 Mar 2015 14:58:00 -0400 [thread overview]
Message-ID: <m27fucddc7.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <m2vbhw7ubo.fsf@tsdye.com>
That is an interesting one I did not know of. I would not want to always
run every block, some of them might not be part of a session, and it is
possible to have multiple named sessions in a buffer. It might be good
practice to not do that though ;)
I will share my way of doing this if nothing else comes up.
Thomas S. Dye writes:
> Ken Mankoff <mankoff@gmail.com> writes:
>
>> On 2015-03-19 at 10:26, John Kitchin <jkitchin@andrew.cmu.edu> 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
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
next prev parent reply other threads:[~2015-03-19 18:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 14:26 restarting an org-babel session? John Kitchin
2015-03-19 17:31 ` Ken Mankoff
2015-03-19 17:47 ` Thomas S. Dye
2015-03-19 18:48 ` Ken Mankoff
2015-03-19 18:58 ` John Kitchin [this message]
2015-03-19 19:13 ` Thomas S. Dye
2015-03-19 20:20 ` Andreas Leha
2015-03-19 23:03 ` John Kitchin
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=m27fucddc7.fsf@andrew.cmu.edu \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=mankoff@gmail.com \
--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).