Live data from Hacker News

Turning Sublime Text into a Lightweight Python IDE

cewing.github.io

101–110 of 154 posts

Re: Turning Sublime Text into a Lightweight Python IDE

#101

No mentioning of Anaconda for Sublime? It has many of this features out of the box. But the best IDE experience (beside PyCharm) is really using VSCode + the most popular Python extension https://github.com/DonJayamanne/pythonVSCode This setup is a total replacement for PyCharm for me. Code Refactoring, code definition jump, IntelliSense suggestions and help, linting, virtualenv support, code formatting etc. etc. And…

My only issue with vscode and the python plugin is the debugger. It's completely broken for django projects even if you can manage to figure out the special incantations from piecing together information from the wiki and 5 or 6 issues (some closed) in the repo.

For those interested:

  * expose the right port (if remote debugging)
  * install ptvsd into the virtualenv
  * ptvsd.enable_attach(..) # in manage.py
  * ptvsd.wait_for_attach() # in manage.py
  * run the debug server in single threaded mode
  * run the debug server with noreload
PyCharm debugging is really top notch, but I don't like the editing experience nearly as much as in sublime or vscode. The keybindings and shortcuts feel so much better in vscode that I'd rather use ipdb in a terminal when I need to debug.

Re: Turning Sublime Text into a Lightweight Python IDE

#102
post #48

> The final requirement for a reasonable IDE experience is to be able to follow a debugging session in the file where the code exists. > There is no plugin for SublimeText that supports this. But there is a Python package you can install into the virtualenv for each of your projects that does it. This drives me batty whenever I see "turn XYZ into an IDE for (foo)." The author of this post at least lists debugger inte…

VSCode has integrated debugging for most languages, but as I mentioned upthread, it's hit or miss depending on the language and environment.

Re: Turning Sublime Text into a Lightweight Python IDE

#104
post #15
post #3

Wait — People are actually still using ST in 2017? And here I was thinking Atom and VSCode had dominated the IDE/Editor environment

I don't understand this attitude. Atom's look/feel/functionality/default keybinds are based on sublime text. Sublime text is a lot faster/more reliable. Atom has a large community building addons for it. Take your pick. I used atom until I got annoyed by how it choked on large files and crashed semi-frequently.

There's nothing wrong with using multiple editors for different tasks. I'm currently using vscode after a stint with atom for the majority of my editing. But I use sublime text for scratch space or quickly opening large files or one off text files.

Re: Turning Sublime Text into a Lightweight Python IDE

#105
post #3

Wait — People are actually still using ST in 2017? And here I was thinking Atom and VSCode had dominated the IDE/Editor environment

What is so hard to get people? VS Code and any other Electron based software is too slow. It is not performant at all. First of all, UI responsiveness is just not on par with native editors, second, the entire thing absolutely croaks, especially search, with a large code base. It's not as bad as Atom, but still not usable.

I know those of you who love VS Code are not working with large projects. You could argue that you can load up your project in a more modular way, or search just parts of your projects, not all files, but then you've lost a lot of functionality, and you might as well use another piece of software which actually handles a large code base.

Re: Turning Sublime Text into a Lightweight Python IDE

#106

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 l…

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

#107
post #89

Earlier quoted context omitted.

So that's the case for JetBrains' products then? VSCode is Microsoft's product, and they are doing solid job with it now, but who knows what they will do with it in 5 years' time. I won't be surprised if they try to integrated it with Azure more closely and do some things which are not relevant to me. Plus it's Electron app which I won't use. And it's not like open source solution can't fail and be abandoned. Only tw…

What's wrong with an Electron app? I am curious.

You can check out some of my previous comments on my profile. I think we have discussed & covered it extensively here on HN. :)

Re: Turning Sublime Text into a Lightweight Python IDE

#108

Earlier quoted context omitted.

Remote deployment is the killer feature for me at this moment.

It doesn't only works in remote machines, but in docker as well. It's a killer feature. You can have nice UI of OSX and be as close as possible to the deployment platform.

[deleted]

Re: Turning Sublime Text into a Lightweight Python IDE

#109

Maybe I'm the exception, but I can't see why people, why programmers , bother investing their editing-skills in a closed-source editor and toolkit. Sublime is closed source. When it croaks up and dies, all the skills you've built up will be wasted, and you'll have to rebuild them elsewhere. Why not invest in something open instead? There's more options than ever before, and they're all good. For me, VS Code seems to…

Do you use OSX or Chrome?

Linux and Firefox. How come you ask?

Re: Turning Sublime Text into a Lightweight Python IDE

#110
post #78

Earlier quoted context omitted.

I've never had it take 5 minutes on a ~3 year old Intel i5 with a cheap SSD. Maybe 10 seconds. Scanning a large project might take 30-60 seconds. 5 minutes would be painful. What kind of set up do you have and what size project?

I find startup time of PyCharm to be really stochastic. Sometimes it's 10-20 seconds and sometimes it takes a couple of minutes, even on relatively tiny projects. That being said I think PyCharm is good enough that I'm willing to put up with that.

core i3 with hdd
Post reply on HN