News for hackers. Stuff that matters.
Re:Turning Sublime Text into a Lightweight Python IDE by mylons on Tuesday May 09, 2017 @10:14PM (#14305456)
i'd just rather use pycharm. https://www.jetbrains.com/pycharm/
Re:Turning Sublime Text into a Lightweight Python IDE by aub3bhat on Tuesday May 09, 2017 @10:23PM (#14305493)
PyCharm is the BEST IDE. Cant imagine working without it. It has become a part of how I think about code. The type hints and instant error check it provides for python are unmatched.
Re:Turning Sublime Text into a Lightweight Python IDE by solomatov on Tuesday May 09, 2017 @10:21PM (#14305489)
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.
Re:Turning Sublime Text into a Lightweight Python IDE by speedplane on Wednesday May 10, 2017 @12:53AM (#14305988)
I totally agree PyCharm's navigation and debugging functionality are fantastic. That said, when I last tried it (about 2-3 years ago), my Python code ran incredibly slow. I have a relatively large but not huge Django based python project (~2M LOC with libraries), but with debugging enabled my Python code practically ground to a halt. It's possible I misconfigured the debugger, and I can't remember how long I spent trying to get it to work, but it was discouraging enough that I dropped it.

My debugging now is just logging.info and some fancier log aggregation tools, but still feels like the early 1990s.

Re:Turning Sublime Text into a Lightweight Python IDE by BozeWolf on Wednesday May 10, 2017 @01:37AM (#14306134)
Pycharms 2017 debugger (pydev), is much faster now. You meed to use python 3.6 though. The debugger window suggests to install some bindings. If you do that the debugger runs much much faster.
Re:Turning Sublime Text into a Lightweight Python IDE by speedplane on Sunday May 14, 2017 @11:14PM (#14338901)
I hate the 2.x / 3.x python split so much ... don't get me started.
Re:Turning Sublime Text into a Lightweight Python IDE by UnrealIncident on Wednesday May 10, 2017 @01:37AM (#14306133)
They've made some improvements to the debugger recently. Enabling Cython doubles the speed but the biggest improvement is using Python 3.6. They now use the frame eval hook that was added and they claim it's 40x faster.
Re:Turning Sublime Text into a Lightweight Python IDE by coldtea on Wednesday May 10, 2017 @03:11AM (#14306407)
>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 by gocolts23 on Wednesday May 10, 2017 @12:44PM (#14309599)
Anyone who thinks PyCharm is sluggish, needs to reevaluate. I use it inside of VM as my daily driver, the startup is the only "sluggish" thing about it, and even that is negligible. They introduced "zero-latency typing" a while ago.

Also, I'd argue PyCharm has much more than sublime.

Re:Turning Sublime Text into a Lightweight Python IDE by seanp2k2 on Tuesday May 09, 2017 @11:18PM (#14305674)
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.
Re:Turning Sublime Text into a Lightweight Python IDE by stickperson on Wednesday May 10, 2017 @01:52AM (#14306177)
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.
Re:Turning Sublime Text into a Lightweight Python IDE by coldtea on Wednesday May 10, 2017 @03:14AM (#14306415)
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 by heyoni on Tuesday May 09, 2017 @11:56PM (#14305819)
The debugger in vs code is nearly on par with pycharms. It's crazy how right they got it from the getgo
Re:Turning Sublime Text into a Lightweight Python IDE by ren01r on Wednesday May 10, 2017 @12:31AM (#14305930)
Development tools were a strong suite of Microsoft from the beginning. But, VSCode is really great and admirable.
Re:Turning Sublime Text into a Lightweight Python IDE by giancarlostoro on Tuesday May 09, 2017 @11:28PM (#14305713)
I'd like to mention this because I've mentioned it before for anyone using Visual Studio already the Python Tools for Visual Studio are definitely on par with PyCharm I say this having used both. These are the two best choices I would offer anyone for Python development aside from just using whatever you favorite editor is with plugins (though Sublime seems to be a decent choice here). Edit: I also say this as someone who bought all the IDE's from JetBrains and because some people might have Visual Studio and only Visual Studio at their jobs.
Re:Turning Sublime Text into a Lightweight Python IDE by jupiter90000 on Wednesday May 10, 2017 @12:35AM (#14305935)
I was going between vim and sublime text for python code, and my team lead suggested pycharm. I was doubtful, but it makes alot of things so easy so I use it almost always for python code now. However like another person mentioned, the startup time can be painful. I just open it and leave it up to avoid that part.
Re:Turning Sublime Text into a Lightweight Python IDE by rajathagasthya on Wednesday May 10, 2017 @01:22AM (#14306083)
If you're used to vim, you can also use vim key bindings in Pycharm and kind of get best of both worlds.
Re:Turning Sublime Text into a Lightweight Python IDE by jdc0589 on Wednesday May 10, 2017 @10:37AM (#14308520)
Jetbrains does not play. There is not a ton of software I am so impressed by I will publicly support it any chance I get, but the list includes most everything by Jetbrains.

The rest of the list is pretty short: Plex and 1Password (less so these days).

Re:Turning Sublime Text into a Lightweight Python IDE by c8g on Tuesday May 09, 2017 @11:59PM (#14305825)
5 minutes to start
Re:Turning Sublime Text into a Lightweight Python IDE by switch007 on Wednesday May 10, 2017 @02:35AM (#14306304)
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?
Re:Turning Sublime Text into a Lightweight Python IDE by dagw on Wednesday May 10, 2017 @05:07AM (#14306872)
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.

Re:Turning Sublime Text into a Lightweight Python IDE by c8g on Wednesday May 10, 2017 @08:53AM (#14307758)
core i3 with hdd
Re:Turning Sublime Text into a Lightweight Python IDE by yedpodtrzitko on Wednesday May 10, 2017 @02:48AM (#14306344)
How many times per day do you start it?
Re:Turning Sublime Text into a Lightweight Python IDE by c8g on Wednesday May 10, 2017 @08:32AM (#14307640)
changing python 2 to 3 projects cause "indexing" I don't have ssd to make it faster