Function: org-babel-execute-subtree

org-babel-execute-subtree is an autoloaded, interactive and byte-compiled function defined in ob-core.el.gz.

Signature

(org-babel-execute-subtree &optional ARG)

Documentation

Execute source code blocks in a subtree.

Call org-babel-execute-src-block on every source block in the current subtree, passing over the prefix argument ARG.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-core.el.gz
;;;###autoload
(defun org-babel-execute-subtree (&optional arg)
  "Execute source code blocks in a subtree.
Call `org-babel-execute-src-block' on every source block in
the current subtree, passing over the prefix argument ARG."
  (interactive "P")
  (save-restriction
    (save-excursion
      (org-narrow-to-subtree)
      (org-babel-execute-buffer arg)
      (widen))))