@@ -20,27 +20,33 @@ of this file]]. If you ever want to regenerate if from this org
document, simply =M-x org-babel-tangle=.
* Machine-dependent configuration
For Linux, macOS, and other Unix-like systems, the following settings will probably work fine. If you use Windows, or if running Python and/or R code from OrgMode fails with an error message, please replace "python3" by the full path to your Python interpreter.
#+begin_src emacs-lisp :tangle init.el
;; Machine-dependent configuration - adapt as required for your computer!
#+end_src
** Python
*** We use python3
#+begin_src emacs-lisp :tangle init.el
;; If a full path to the interpreter is used, be careful it if contains spaces
;; (which seems to be typical for Windows and not rare for macOS). The path
;; Executables for Python and R
;; Default setting: Use "python3" under Linux and macOS, but "Python" under Windows.
;; The default for R is "R" for all platforms (predefined by Emacs).
(setq org-babel-python-command
(if (memq system-type '(windows-nt ms-dos))
"Python"
"python3"))
;; If the Python and R executables are on your system's search path,
;; you should not have to modify anything here. If Emacs does not find
;; Python or R, or if it uses a different version of Python or R than you
;; expect, you can uncomment these two lines (one for Python, one for R)
;; and modify them to point to the executables.
;; Python
;; Be careful if the path to your Python installation contains spaces. The path
;; must then be surrounded by backslash-escaped quotation marks, as in