In python-mode there's a menu PyShell -> ipython-dedicated
. I think that's simplest.
Domanda
I am using Emacs Version 24.3 on mac. and python is '2.7.6', ipython is '1.2.1'.
But when I want to use ipython in emacs with code:
(require 'python)
(setq
python-shell-interpreter "ipython"
python-shell-interpreter-args ""
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")
but when I press 'C-c C-z', it shows:
Run Python: nil
when I just press ENTER, error returned:
Searching for program: no such file or directory, nil
I also have tried:
Run Python: python
python (not ipython) interpreter shows up with error:
ImportError: No module named IPython.core.completerlib
How can I make it right to use Ipython interprter in emacs??? Thank you.
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow