使用Python或IPython在Emacs的python-mode中使用多个Python shell [英] Using multiple Python shells in Emacs 'python-mode' with Python or IPython
本文介绍了使用Python或IPython在Emacs的python-mode中使用多个Python shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在运行Emacs时,是否有办法强制执行 python-shell
的新实例?在使用单独的工作目录(和不同模块)的多个项目上工作时,这将很方便。
Is there a way to force a new instance of python-shell
while running Emacs? It would be convenient when working on multiple projects with separate working directories (and different sets of modules).
任何尝试调用 python-shell
只会拉起当前的实例。
Any attempt to invoke python-shell
will only pull up the current instance.
推荐答案
你需要在打开之前重命名你原来的python-shell一个新的。使用 M - x 重命名缓冲区
。
You need to rename your original python-shell before opening up a new one. Use M-x rename-buffer
.
这篇关于使用Python或IPython在Emacs的python-mode中使用多个Python shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文