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:

python-send-region

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

python-send-region-and-go

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

python-send-defun

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

python-python-command

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 .