Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created May 17, 2019 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrycojones/d309edfa7ecc1e87c290ea9e4c3723bb to your computer and use it in GitHub Desktop.
Save terrycojones/d309edfa7ecc1e87c290ea9e4c3723bb to your computer and use it in GitHub Desktop.
(elpy-enable)
(pyvenv-workon "37")
(setq elpy-test-runner 'elpy-test-trial-runner)
(setq
elpy-test-trial-runner-command
(list (expand-file-name (format "~/.virtualenvs/%s/bin/trial" pyvenv-virtual-env-name)) "--rterrors"))
(when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode))
(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 "jupyter")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment