2021-05-11 09:31:13 +02:00
|
|
|
;; Python configuration.
|
2020-01-05 23:51:24 +01:00
|
|
|
(use-package elpy
|
|
|
|
:ensure t
|
|
|
|
:init
|
|
|
|
(elpy-enable)
|
|
|
|
:bind
|
|
|
|
("M-." . jedi:goto-definition)
|
|
|
|
("M-," . jedi:goto-definition-pop-marker)
|
|
|
|
:config
|
|
|
|
(setq python-shell-interpreter "jupyter"
|
|
|
|
python-indent-offset 4
|
|
|
|
python-shell-interpreter-args "console --simple-prompt"
|
|
|
|
python-shell-prompt-detect-failure-warning nil)
|
2020-07-31 00:41:04 +02:00
|
|
|
(use-package jupyter
|
|
|
|
:ensure t)
|
|
|
|
(use-package ein
|
|
|
|
:ensure t)
|
|
|
|
(use-package py-autopep8
|
|
|
|
:ensure t)
|
|
|
|
(use-package jedi
|
|
|
|
:ensure t)
|
2020-01-05 23:51:24 +01:00
|
|
|
;; Use IPython for REPL
|
|
|
|
(add-to-list 'python-shell-completion-native-disabled-interpreters
|
|
|
|
"jupyter")
|
|
|
|
:hook
|
2020-01-06 02:22:45 +01:00
|
|
|
(elpy-mode . (lambda () (highlight-indentation-mode -1)))
|
2021-05-11 09:31:13 +02:00
|
|
|
;; (elpy-mode . py-autopep8-enable-on-save)
|
2020-01-05 23:51:24 +01:00
|
|
|
(elpy-mode . flycheck-mode)
|
2021-06-03 15:46:11 +02:00
|
|
|
(elpy-mode . jedi:setup))
|
2019-12-08 21:51:17 +01:00
|
|
|
|
|
|
|
(provide 'jenga-python)
|