Search code examples
pythonemacselispipythonpython-mode

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.


Solution

  • You need to rename your original python-shell before opening up a new one. Use M-x rename-buffer.