Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Are there loveshack python-mode (python.el) equivalents of

  • py-shell
  • py-execute-region
  • py-execute-class-or-def

that are available in python-mode.el?

share|improve this question

I'm not that familiar with either, but maybe these are equivalent:


Send the region to the inferior Python process.
May print a message, so only suitable for interactive use.


Send the region to the inferior Python process.
Then switch to the process buffer.


Send the current defun (class or method) to the inferior Python process.


Shell command to run Python interpreter.
Any arguments can't contain whitespace.
Note that IPython may not work properly;
it must at least be used with the `-cl' flag,
i.e. use `ipython -cl'.
Doesn't take full effect unless set through Custom.

Also check out 'gallina' python.el as mentioned here.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .