From 834d79cb006e53c1377aff6c77cae339d3437241 Mon Sep 17 00:00:00 2001 From: sbenner Date: Mon, 11 Aug 2014 17:53:33 -0400 Subject: [PATCH] Add ipython as python inferior process --- init-package/init-python.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init-package/init-python.el b/init-package/init-python.el index 6900f0bfa..bc1aa4b64 100644 --- a/init-package/init-python.el +++ b/init-package/init-python.el @@ -14,6 +14,17 @@ (highlight-lines-matching-regexp "import pdb") (highlight-lines-matching-regexp "pdb.set_trace()")) (add-hook 'python-mode-hook 'annotate-pdb) + (setq + python-shell-interpreter "ipython" + ;; python-shell-interpreter-args (if (system-is-mac) + ;; "--gui=osx --matplotlib=osx --colors=Linux" + ;; (if (system-is-linux) + ;; "--gui=wx --matplotlib=wx --colors=Linux")) + python-shell-prompt-regexp "In \\[[0-9]+\\]: " + python-shell-prompt-output-regexp "Out\\[[0-9]+\\]: " + python-shell-completion-setup-code "from IPython.core.completerlib import module_completion" + python-shell-completion-module-string-code "';'.join(module_completion('''%s'''))\n" + python-shell-completion-string-code "';'.join(get_ipython().Completer.all_completions('''%s'''))\n") (use-package jedi :defer t :init