diff --git a/modules/lang/python/autoload/python.el b/modules/lang/python/autoload/python.el index af9d19724..635df2f07 100644 --- a/modules/lang/python/autoload/python.el +++ b/modules/lang/python/autoload/python.el @@ -27,7 +27,7 @@ "Open an IPython REPL." (interactive) (let ((python-shell-interpreter "ipython") - (python-shell-interpreter-args +python-jupyter-repl-args)) + (python-shell-interpreter-args (string-join +python-ipython-repl-args " "))) (+python/open-repl))) ;;;###autoload @@ -36,7 +36,7 @@ (interactive) (add-to-list 'python-shell-completion-native-disabled-interpreters "jupyter") (let ((python-shell-interpreter "jupyter") - (python-shell-interpreter-args (format "console %s" +python-jupyter-repl-args))) + (python-shell-interpreter-args (format "console %s" (string-join +python-jupyter-repl-args " ")))) (+python/open-repl))) (defun +python--extract-version (prefix str) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 5e7ce2110..529b69ddd 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -3,11 +3,11 @@ (defconst +python-mode-line-indicator '("" +python--version) "Format for the python version/env indicator in the mode-line.") -(defvar +python-ipython-repl-args "-i --simple-prompt --no-color-info" +(defvar +python-ipython-repl-args '("-i" "--simple-prompt" "--no-color-info") "CLI arguments to initialize ipython with when `+python/open-ipython-repl' is called.") -(defvar +python-jupyter-repl-args "--simple-prompt" +(defvar +python-jupyter-repl-args '("--simple-prompt") "CLI arguments to initialize 'jupiter console %s' with when `+python/open-ipython-repl' is called.")