[emacs] Update init.el for python.

This commit is contained in:
Mikaël Capelle 2019-12-09 10:37:12 +01:00
parent 43f9d232d9
commit dd07dc8d1f

View File

@ -316,11 +316,15 @@
:ensure t :ensure t
:config :config
(when (load "flycheck" t t) (when (load "flycheck" t t)
(require 'flycheck-mypy)
(flycheck-add-next-checker 'python-flake8 'python-mypy)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules)) (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode)) (add-hook 'elpy-mode-hook 'flycheck-mode))
(setq python-shell-interpreter "jupyter" (setq python-shell-interpreter "ipython"
python-shell-interpreter-args "console --simple-prompt" python-shell-interpreter-args "-i --simple-prompt")
python-shell-prompt-detect-failure-warning nil) ;; (setq python-shell-interpreter "jupyter"
;; python-shell-interpreter-args "console --simple-prompt"
;; python-shell-prompt-detect-failure-warning nil)
(add-to-list 'python-shell-completion-native-disabled-interpreters (add-to-list 'python-shell-completion-native-disabled-interpreters
"jupyter") "jupyter")
:init :init