在Emacs上,当我C-c !在编辑远程python文件(使用tramp-plinkx:on windows)时启动python 时,python解释器在远程主机上启动.
有什么办法可以编辑远程python文件并启动本地python解释器吗?
我使用的是python-mode(不是默认的python.el)
我正在使用 python 模式设置我的 emacs (24.3)。我希望能够编辑 python 缓冲区并使用“Cc CC”在 python shell 中执行它。这大多有效。但如果我留在 python 代码缓冲区并再次执行缓冲区,我会收到“文本是只读”错误。
缓冲区是否已更改并保存,或者是否是相同的未更改缓冲区并不重要 - 重复抄送抄送会产生错误。解决方案似乎是访问 python 输出缓冲区并返回 python 代码缓冲区,然后执行 - 这是有效的。但这打破了我的流程。其他人也有同样的问题吗?我的设置中是否存在一些可能的错误配置?
问候, 罗马
我使用 Emacs python-mode 和 ipython 作为我的 IDE 来编写 python 代码。Python-mode 提供了一个很好的函数“py-execute-line”来运行一行代码,我将它绑定到键“F7”。
所以对于下面的代码:
cell = "Human" # Move the cursor to this line and run it by pressing F7
print cell # Move the cursor to this line and run it by pressing F7
Run Code Online (Sandbox Code Playgroud)
我可以在 ipython 缓冲区中打印输出。
In [80]:
In [81]: Human
Run Code Online (Sandbox Code Playgroud)
我想知道是否有更直接的方法来检查没有打印命令的“单元格”的值。类似于将光标移动到变量,按下某个键,然后将值打印在 ipython 输出缓冲区中。
cell = "Human" # Move the cursor to this line and run it by pressing F7
cell = "Human" # Move the cursor to "cell" and …Run Code Online (Sandbox Code Playgroud) 我已经配置了python-mode来手动检查.所以我输入:PyLint并检查我的代码,显示"QuickFix"窗口和侧面的一些标记.我可以随后通过:only在其他窗口中输入来关闭QuickFix窗口,但是如何清除侧标记?
我正在为Emacs 23尝试新的Python模式,但我不知道如何判断我是使用新模式(源代码位于~/.elisp/python.el)还是捆绑python.el模式.
有没有办法找出当前(或任何活动)模式的加载位置?C-h m似乎没有提供这些信息,我不知道在哪里可以看.
如果这是转发,我深表歉意。我在问题中找不到类似的。
我正在尝试将 emacs 设置为我的 python IDE,其中包含 IPython。基本上遵循这个http://www.jesshamrick.com/2012/09/18/emacs-as-a-python-ide/
我的 emacs shell 中的 python 版本是 2.7.5,而终端中的 python 版本是 2.7.6。然而,在 emacs shell 中输入 ipython 显示 ipython 尚未安装,但我能够将 ipython 安装到终端。
我想知道如何将 ipython 插件安装到 .emacs 文件中。当你说安装时,是否意味着复制文件并将其放在那里?如果是的话,我已经这样做了。然而,当我尝试运行 python 程序时,它显示“正在搜索程序:没有这样的文件或目录,ipython。提前感谢您的帮助。

每次我单击点时,函数签名都会出现在单独的缓冲区中。
import sys
sys.argv # in this moment I have a separate buffer opened with sys.argv signature
Run Code Online (Sandbox Code Playgroud)
那么这个缓冲区一直存在,直到手动关闭。
我只想在按下 时才拥有它ctrl-K。或者至少当我退出插入模式时它会消失......