Using multiple Python shells in Emacs 'python-mode' with Python or IPython
问题 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). Any attempt to invoke python-shell will only pull up the current instance. 回答1: You need to rename your original python-shell before opening up a new one. Use M - x rename-buffer . 回答2: Renaming the buffer doesn't work for me, but you can use the third parameter of run-python . M - : (run-python