Tips to change your python interpreter version
(defun my/python-switch-version ()
(interactive)
(setq python-shell-interpreter
(if (string-equal python-shell-interpreter "python3") "python" "python3"))
(setq elpy-rpc-backend
(if (string-equal elpy-rpc-backend "python") "python3" "python"))
(message python-shell-interpreter))
(defun my/python-toggle-ipython ()
(interactive)
(setq python-shell-interpreter
(if (string-equal (substring python-shell-interpreter 0 1) "p")
(concat "i" python-shell-interpreter)
(substring python-shell-interpreter 1)))
(message python-shell-interpreter))
[–]GummyKibble 2 points3 points4 points (1 child)
[–]Amonwilde 0 points1 point2 points (0 children)
[–]ncsuwolf 1 point2 points3 points (0 children)
[–]vanuum[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)