Live data from Hacker News

Turning Sublime Text into a Lightweight Python IDE

cewing.github.io

61–70 of 154 posts

Re: Turning Sublime Text into a Lightweight Python IDE

#62
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 last but not least VSCode and this extension are both free, open source... unlike Sublime and PyCharm.

Re: Turning Sublime Text into a Lightweight Python IDE

#64
I am using Notepad++ (I'm a windows user) for more than 5 years for python/django development. Never regreted it - never found something better. I stuck to Notepad++ even when I was using a Mac for some months (through Wine) - I couldn't find something better or faster.

Everything else is way too slow (Atom, VS Code, pycharm) or way too inefficient (Vim / Emacs - inefficient for me they may be great for you) to replace Notepad++. An IDE is not really needed with python - it's not java - If you want to debug something just add a breakpoint to drop directly to your program (I have actually written a tutorial for that https://spapas.github.io/2016/06/07/django-werkzeug-debugger...) - you'll then have a full repl to do whatever you wish!

I really think that notepad++ is a great editor (at least for windows users) and should get more traction.

I had tried sublime text a bit and the only feature I found usefull that notepad++ lacks is the quick switch to file - but I can live without it, especially since Notepad++ is Open Source!

Re: Turning Sublime Text into a Lightweight Python IDE

#65
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…

>I haven't seen one article for turning Atom/ST/Vim/etc into an "IDE" that comes close capability-wise.

Well, then again, I've never seen an IDE that comes close to ST/Vim/etc in their lightness, speed of opening, editing, switching files, and pleasantness of the core editing experience, much less one without a heavy beast of a UI. Or one that you can setup exactly as you want, as heavy or as light as you like, plugin by plugin, without all kinds of crap builtin.

Re: Turning Sublime Text into a Lightweight Python IDE

#66
post #60
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…

That's because your definition is flawed. When it's all said and done, all that matters is that you're able to get the work done. Take vim, for example. You can quite often use CLI tools to get the work done due to vim's integration into the surrounding ecosystem, and this includes things such as debuggers. For a language like C#, you're never going to find as integrated an experience as you will with Visual Studio.…

My definition of what? I literally said there's nothing wrong with taking that approach. I quite purposely did not argue productivity.

My issue is with the acknowledgment by the author that the standard for "IDE" includes debugging capabilities and then goes on to provide a plugin that provides follow-along only via running GDB, which would need to be configured (I assume, since the author does not specify) the normal ways.

If you want to argue UNIX is the IDE I can get behind that definition, but the debugger is absolutely not integrated into Sublime (or Vim or Atom or N++ or ...) in any meaningful way.

Re: Turning Sublime Text into a Lightweight Python IDE

#67
post #16

i'd just rather use pycharm. https://www.jetbrains.com/pycharm/

Completely agree. I can't use even the best editor if it doesn't provide basic navigation, and debugging functions. 20 years ago, people claimed that IDEs were bad, but now the situation have changed. PyCharm has almost everything that Sublime has, and even more, there's vim mode, which moved editing to a new level.

>20 years ago, people claimed that IDEs were bad, but now the situation have changed. PyCharm has almost everything that Sublime has

Whether "PyCharm has almost everything that Sublime has" is not really relevant to whether people claimed IDEs were bad -- seeing that people didn't claim IDEs were bad for lack of features.

It's the slugginess and especially the "take it or leave it" bundle of stuff that comes built-in into an IDE that annoy(ed)s people.

Re: Turning Sublime Text into a Lightweight Python IDE

#68

Earlier quoted context omitted.

I was a big fan of PyCharm, but VSCode is getting there in terms of IDE functionality, especially for Python. It's a decent daily driver for me now.

I really want to use VSCode, but the one HUGE thing holding me back is lack of a hot key to show/hide VSCode. I use iTerm and am used to opening/closing it with Ctrl + `. Having to use Cmd + Tab and then making sure I actually choose VSCode and note another application that I was just in really slows me down.

Sounds really orthogonal and something some third party keyboard-driven window management utility can take care.

Re: Turning Sublime Text into a Lightweight Python IDE

#70

I am using Notepad++ (I'm a windows user) for more than 5 years for python/django development. Never regreted it - never found something better. I stuck to Notepad++ even when I was using a Mac for some months (through Wine) - I couldn't find something better or faster. Everything else is way too slow (Atom, VS Code, pycharm) or way too inefficient (Vim / Emacs - inefficient for me they may be great for you) to repla…

Did you try sublime on OS X? I like notepad++ too, I'd say it's pretty interchangeable with sublime on Windows - but I'd be surprised if it on wine is better than sublime native.
Post reply on HN