我正在尝试远程运行ipython解释器(使用Emacs 24.5和native python.el
),但是我不确定我使用的方法是否正确:例如,每当尝试运行这样的命令时(通过触发C-c C-c
):
Run Python: /ssh:<server_name>:/usr/local/bin/ipython -i
(<server_name>
在我的中有一个有效条目~/.ssh/config
,并且ipython
在该远程位置可用),我收到如下错误:
Warning (emacs): Python shell prompts cannot be detected.
If your emacs session hangs when starting python shells
recover with `keyboard-quit' and then try fixing the
interactive flag for your interpreter by adjusting the
`python-shell-interpreter-interactive-arg' or add regexps
matching shell prompts in the directory-local friendly vars:
+ `python-shell-prompt-regexp'
+ `python-shell-prompt-block-regexp'
+ `python-shell-prompt-output-regexp'
Or alternatively in:
+ `python-shell-prompt-input-regexps'
+ `python-shell-prompt-output-regexps'
以及:
env: /ssh:<server_name>:/usr/local/bin/ipython: No such file or directory
在*Python*
缓冲区中。.这是否利用tramp
并python.el
能够以这种方式运行远程解释器?