【问题标题】:IPython on Emacs 24.2 doesn't workEmacs 24.2 上的 IPython 不起作用
【发布时间】:2013-07-01 05:39:51
【问题描述】:

我是 emacs 的初学者,我正在尝试进行扩展,因此它就像一个舒适的 python IDE。问题是我似乎无法将 Ipython 集成到 emacs。我在 Xubuntu 13.04 上运行带有 Ipython 0.13.2 的 emacs 24.2。

我尝试将其添加到我的 .emacs 文件中:

(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")

但是从 emacs (Python > Start Interpreter) 运行 python 控制台只会带来“劣质 Python 模式”。我也试过“emacs-ipython-notebook”,但这似乎不是我要找的……

谢谢!

【问题讨论】:

  • 使用 python-mode.el 你应该不需要任何这些配置东西https://launchpad.net/python-mode IPython-notebook 是基于 IPython 构建的不同的东西。

标签: python emacs ipython


【解决方案1】:

Emacs 24.3 带有与 24.2 不同的 python.el。您在 24.3、24.2 python.el 符号处的安装点将忽略这一点。

【讨论】:

    猜你喜欢
    • 2012-10-25
    • 1970-01-01
    • 1970-01-01
    • 2011-06-05
    • 1970-01-01
    • 1970-01-01
    • 2014-02-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多