0

In the same spirit that Org Mode allows us to have multiple python SRC BLOCKS with different sessions running independently, is it possible to have multiple Python shells running in different Layouts with Spacemacs?

(Or not necessarely with spacemacs)

I know it is possible to start multiple shells by renaming the * Python * buffer. What happens then is that code is always sent to the new shell, so the old one becomes sort of useless.

2

I set this up for myself using two custom Spacemacs layers: org-extras and python-extras.

The first step involves forcing org-babel to use python-mode's shell process naming (see here), then the Python shell naming is amended to include the project name (see here).

If you'd like, I could submit a PR to add these as toggle-able features in the default Python and/or Org layers in Spacemacs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.