Variable: python-shell-interpreter
python-shell-interpreter is a customizable variable defined in
python.el.gz.
Value
"python3"
Documentation
Default Python interpreter for shell.
Some Python interpreters also require changes to
python-shell-interpreter-args. In particular, setting
python-shell-interpreter to "ipython3" requires setting
python-shell-interpreter-args to "--simple-prompt".
This variable was added, or its default value changed, in Emacs 28.1.
Probably introduced at or before Emacs version 24.3.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defcustom python-shell-interpreter
(cond ((executable-find "python3") "python3")
((executable-find "python") "python")
(t "python3"))
"Default Python interpreter for shell.
Some Python interpreters also require changes to
`python-shell-interpreter-args'. In particular, setting
`python-shell-interpreter' to \"ipython3\" requires setting
`python-shell-interpreter-args' to \"--simple-prompt\"."
:version "28.1"
:type 'string
:group 'python)