emacs の設定を必要としない、より良い解決策を見つけました。
単純に
$ ipython profile create
ipythonプロファイルを作成する必要があります
$HOME/.ipython/profile_default/ipython_config.py
次に、内部に次を入れます
c = get_config()
c.TerminalInteractiveShell.editor = 'emacsclient'
c.InteractiveShellApp.extensions = [
'autoreload'
]
c.InteractiveShellApp.exec_lines = []
c.InteractiveShellApp.exec_lines.append('%load_ext autoreload')
c.InteractiveShellApp.exec_lines.append('%autoreload 2')
次に emacs を再起動します。emacs内のファイルに変更を保存するたびに、ipythonは自動的に再ロードします
そして、私は私のemacs設定に持っている以下
;; ------------------
;; misc python config
;; ------------------
(company-mode -1)
(elpy-enable)
(elpy-use-ipython "ipython")
(setq python-shell-interpreter "ipython" python-shell-interpreter-args "--simple-prompt --pprint")
(setq python-check-command "flake8")
(setq elpy-rpc-backend "jedi")
(setq elpy-rpc-python-command "python")
; https://github.com/gregsexton/ob-ipython/issues/28
(setq python-shell-completion-native-enable nil)
私の完全な python 構成を見たい場合は、ここにあります