Function: org-babel-python--command

org-babel-python--command is a byte-compiled function defined in ob-python.el.gz.

Signature

(org-babel-python--command IS-SESSION)

Documentation

Helper function to return the Python command.

This checks org-babel-python-command, and then org-babel-python-command-session (if IS-SESSION) or org-babel-python-command-nonsession (if not IS-SESSION). If IS-SESSION, this might return nil, which means to use python-shell-calculate-command.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-python.el.gz
(defun org-babel-python--command (is-session)
  "Helper function to return the Python command.
This checks `org-babel-python-command', and then
`org-babel-python-command-session' (if IS-SESSION) or
`org-babel-python-command-nonsession' (if not IS-SESSION).  If
IS-SESSION, this might return nil, which means to use
`python-shell-calculate-command'."
  (or (unless (eq org-babel-python-command 'auto)
        org-babel-python-command)
      (if is-session
          (unless (eq org-babel-python-command-session 'auto)
            org-babel-python-command-session)
        org-babel-python-command-nonsession)))