lang/python: fix ipython repl & change args type

+python-ipython-repl-args and +python-jupyter-repl-args are now lists,
rather than strings.
This commit is contained in:
Henrik Lissner 2019-02-28 04:10:35 -05:00
parent fbce94cd20
commit 812c834970
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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.")