私はEmacsの設定を必要としない良く解決策が見つかりました:
は単に
$HOME/.ipython/profile_default/ipython_config.py
にプロファイルipython作成する必要があります
$ ipython profile create
が、その後
内の以下を置けばいいの
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は、それが自動的に
、あなたは私の完全なPythonの設定を確認したい場合、私は私の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)
に持っ以下、それはhereをだリロードします