Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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