Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python development with Emacs? [closed]

Tags:

python

emacs

Anybody knows some actual documentation written? I can't find anything good for any of the 2 competing modes. Looks like Emacs is pretty much abandon when it comes to Python and it is a shame as there is no other programmable programming editor that comes close to Emacs.

like image 688
ipeev Avatar asked Mar 20 '10 14:03

ipeev


People also ask

Can Emacs be used for Python?

The built-in python-mode allows you to use Emacs for Python code debugging with pdb .

How do I run a Python program in Emacs?

Once you open your python file in Emacs, you will need to start the python process with: M-x run-python or C-c C-p , which creates an inferior python shell buffer. This buffer will be created by a horizontal split, and the active buffer will be the one containing the python file.

What is Emacs Python?

Emacs (the major flavors being GnuEmacs and XEmacs) is a text editor which come with good support for writing Python code. Each has its strengths and weaknesses, but in general either provide very nice environments for the Python programmer.


1 Answers

This blog recently had a 2 part series that I found very helpful. Part 1 Part 2

There was also an article in Python Magazine last year in either November or December that included decent step by step instructions on how to setup Emacs for Python development. That's by subscription only, but it's very similar to this.

My current setup (roughly based on the above but trimmed down) is PyMacs+Rope+flymake calling pyflakes and pep8 and I find that to be sufficient. You may also find yasnippets useful, though I don't. Though you may want to configure ecb and maybe cedet for some code browsing things. I don't, because then it takes about as long to startup as eclipse.

Nonetheless, there's plenty of resources on the net for configuring Emacs to be a fine Python development environment.

like image 108
Tom Willis Avatar answered Oct 05 '22 23:10

Tom Willis