News for hackers. Stuff that matters.
Re:Turning Sublime Text into a Lightweight Python IDE by gshulegaard on Wednesday May 10, 2017 @01:34AM (#14306120)
My path with Python IDEs has been:

- Visual Studio (when I was a student)

- Emacs (when I ceased to be a student)

- PyCharm (when my job paid for a license)

- Sublime Text (when I wanted something comparable to Emacs with some niceties thrown in and a single license cost)

All in all I think PyCharm is the most productive I have used. Minimal setup, the best code inspection I have used, nice integrations with things like git out of the box.

But Sublime Text has my heart at the moment because with the Emacs Pro package it has a very Emacs-y feel with almost identical key bindings (slight differences here and there). The package manager may be a bit "odd" and feel like a sidecar, but coming from Emacs...it feels pretty straightforward.

Sublime Text is also language agnostic so that's a plus.

At the moment I use PyCharm Professional for work and Sublime Text for personal stuff...and I think it strikes a good balance. Productivity where my requirements are strict and cost not a factor and flexibility where I like to try new things and recurring fees don't appeal.

Re:Turning Sublime Text into a Lightweight Python IDE by cjauvin on Wednesday May 10, 2017 @08:37AM (#14307669)
I have had a similar path, except for VS. I have been happy (and still am) with Emacs for a very long time (in particular, I really like how easy it is to have some code in the left window, which I can easily send to an IPython REPL in the right window), but recently, for a new job, I picked up PyCharm Pro, and I must say that it's been pretty transformative. Three aspects stand out IMO:

- It's a fantastic tool to explore and understand big, industrial codebases

- The testing and debugging support is stellar

- The Emacs binding emulation is great (so it's easy to feel relatively at "home")

Re:Turning Sublime Text into a Lightweight Python IDE by wonderfool on Wednesday May 10, 2017 @02:22PM (#14310359)
> I really like how easy it is to have some code in the left window, which I can easily send to an IPython REPL in the right window

This sounds pretty great. Would you mind explaining how that works? Is it specific to Emacs?

Re:Turning Sublime Text into a Lightweight Python IDE by cjauvin on Wednesday May 10, 2017 @04:28PM (#14311360)
It's actually quite easy, as it comes pretty much out of the box with recent versions of Emacs (24+) and python.el (not to be confused with the older python-mode.el). I could not find a nice web source for python.el's documentation, but it turns out that directly reading its code is not so bad in this case:

https://github.com/emacs-mirror/emacs/blob/master/lisp/progm...

In particular, you need to set the `python-shell-interpreter` variable to "ipython" (which must be in your path preferably). You can then invoke `run-python` to start a REPL, and C-c C-c to send a buffer to it.

There are a couple more interesting commands with this mode, see:

https://github.com/emacs-mirror/emacs/blob/master/lisp/progm...