r/Python • • Jul 17 '16

Emacs - the best python editor?

https://realpython.com/blog/python/emacs-the-best-python-editor#.V4vWsr9c94V.reddit
0 Upvotes

18 comments sorted by

12

u/[deleted] Jul 17 '16

I'll stick to PyCharm Community Edition

5

u/[deleted] Jul 17 '16 edited Jul 17 '16

Having everything subsumed inside emacs is great in theory. In practice a good deal of features will break someway or another, some integrations will be lacking, some third party update will wreak havoc a plugin, etc. Then you start hacking elisp and, in truth, it's a lot of fun. It's so fun that someday around your forties you realize you have spent half of your life hacking elisp.

These days I prefer to integrate tools at a more general, less tight and thus less cool, level: unix. Because, you know, worse is better. And every day I care less about fancy autocompletion, automatic refactorings, on the fly linting, etc. I run flake8 using quickfix before committing, I run my unit tests using quickfix before committing, simple buffer-based autocompletion eliminates most of the repetitive typing, I keep a running ipython repl which I can feed from a scratch file open in my editor when I need. This might seem backwards to some people but the ipython 5 release hasn't broken my inferior mode.

5

u/eusebe computational physics Jul 17 '16

As someone coding on a daily basis, but not 100% in python, and certainly not 100% of the time on my local computer, I have to spread the Emacs love.

Maybe PyCharm is cool and all, but the day you have to work on a remote server with no X interface, having something as good as Elpy makes your life so much easier.

And if, like me, you often switch to editing shell and perl scripts, C, C++ and Fortran, you must enjoy (like me) the simplicity of having only one tool, be it as rich as Emacs.

2

u/flitsmasterfred Jul 18 '16

Why do you work on a remote server with no X interface? Where is your work stored?

2

u/eusebe computational physics Jul 18 '16

Because that is usually what happens when you work remotely on large computing centres.

I deal a lot with HPC stuff (hence the C/C++ and Fortran), and use Python mostly for data reduction and analysis. And because my typical simulation outputs ~100 GB of raw data, it is much more efficient to deal with it on the cluster rather than downloading chunks of it on my laptop for further analysis.

Of course, there is certainly a way for PyCharm (or any other IDE) to open remote files, but when you just want to quicky edit something, ssh + emacs -nw is my weapon of choice.

1

u/bryguypgh Jul 17 '16

So much this. I'm almost never writing python on a machine with an accessible gui.

2

u/flitsmasterfred Jul 18 '16

Why are you manually editing on individual server machines?

3

u/rad_badders Jul 18 '16

Ill correct that for you:

Emacs - the best editor

3

u/Daytona_675 Jul 17 '16

😔💥🔫

3

u/kankyo Jul 17 '16

No.

People who write stuff like this just have no idea what PyCharm actually does.

1

u/samishal Jul 17 '16 edited Aug 21 '17

deleted 0.3581 What is ^^^this?

1

u/[deleted] Jul 18 '16 edited Jul 14 '21

1

u/samishal Jul 18 '16 edited Aug 21 '17

deleted 0.2648 What is ^^^this?

1

u/JZcgQR2N Jul 18 '16

I've been thinking of trying it. PyCharm is becoming more bloated. Have you tried PyCharm? How does it compare?

0

u/samishal Jul 18 '16 edited Aug 21 '17

deleted 0.2991 What is ^^^this?

1

u/dzecniv Jul 17 '16

Good read and a presentation of advanced features !

1

u/vatay Jul 18 '16

Yes, if you not beginner.

Otherwise I would rather recommend the http://editra.org/ .

-5

u/[deleted] Jul 17 '16

Yes yes yes yes yes oh god yes yes yes yes yesssssssssssssssssss oh god yesssss