Variable: python-shell-dedicated
python-shell-dedicated is a customizable variable defined in
python.el.gz.
Value
nil
Documentation
Whether to make Python shells dedicated by default.
This option influences run-python when called without a prefix
argument. If buffer or project, create a Python shell
dedicated to the current buffer or its project (if one is found).
This variable was added, or its default value changed, in Emacs 29.1.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defcustom python-shell-dedicated nil
"Whether to make Python shells dedicated by default.
This option influences `run-python' when called without a prefix
argument. If `buffer' or `project', create a Python shell
dedicated to the current buffer or its project (if one is found)."
:version "29.1"
:type '(choice (const :tag "To buffer" buffer)
(const :tag "To project" project)
(const :tag "Not dedicated" nil)))