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:
parent
fbce94cd20
commit
812c834970
2 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
||||||
"Open an IPython REPL."
|
"Open an IPython REPL."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((python-shell-interpreter "ipython")
|
(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)))
|
(+python/open-repl)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
(interactive)
|
(interactive)
|
||||||
(add-to-list 'python-shell-completion-native-disabled-interpreters "jupyter")
|
(add-to-list 'python-shell-completion-native-disabled-interpreters "jupyter")
|
||||||
(let ((python-shell-interpreter "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)))
|
(+python/open-repl)))
|
||||||
|
|
||||||
(defun +python--extract-version (prefix str)
|
(defun +python--extract-version (prefix str)
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
(defconst +python-mode-line-indicator '("" +python--version)
|
(defconst +python-mode-line-indicator '("" +python--version)
|
||||||
"Format for the python version/env indicator in the mode-line.")
|
"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
|
"CLI arguments to initialize ipython with when `+python/open-ipython-repl' is
|
||||||
called.")
|
called.")
|
||||||
|
|
||||||
(defvar +python-jupyter-repl-args "--simple-prompt"
|
(defvar +python-jupyter-repl-args '("--simple-prompt")
|
||||||
"CLI arguments to initialize 'jupiter console %s' with when
|
"CLI arguments to initialize 'jupiter console %s' with when
|
||||||
`+python/open-ipython-repl' is called.")
|
`+python/open-ipython-repl' is called.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue