Live data from Hacker News

Show HN: Python Tools for Visual Studio

pytools.codeplex.com

21–30 of 56 posts

Re: Show HN: Python Tools for Visual Studio

#21
post #15

Looks great! I don't use Python, but I do use Visual Studio every day and this looks like a really complete implementation. Did you find that Visual Studio easy to integrate with, or did you have to fight it to do what you wanted?

Integrating with VS is definitely a non-trivial task. But I work at Microsoft and have access to all of the VS source code, so that's a big help. And when that fails I can usually track down someone who owns that feature. But usually it's only an issue when going off an implementing some brand new integration point for the 1st time, most of the time is spent working on our own bits.

Re: Show HN: Python Tools for Visual Studio

#23
post #20
post #8

One of the few times I've felt jealous as a Linux user :) Really cool, I love the a={2:42} a.values()[0]. example. What are the limitations of such a system in Python? Are there cases where it can be wrong? Can you reveal some more info on how this stuff works under the hood? Do you execute parts of the code or how do you figure these relationships out? Thank you, it's pretty inspirational in regards to how programmi…

We don't actually execute any code to figure this out, it's all based upon analysis of the code. Basically how it works is that we do an abstract interpretation of the code. To take this specific example first we analyze the a = {2:42} line, and the dictionary literal produces a new unique value in the system, and obviously we know it's key/value types. From there we'll analyze the "a.values" which will produce a new…

That's a nice example and good explanation. We're about in the same spot over at KDevelop and call a an "unsure (int, string)" there: http://simplest-image-hosting.net/png-0-n12983

Things like incremental reparsing on edits are handled by KDevelop's DUChain framework, which is shared among the language plugins. The Python language plugin actually reuses the original CPython parser to do the job, and then plugs CPython's AST into KDevelop's DUChain representation.

And just to make me feel less like a thread hijacker, let me add that we've been quite impressed by the work the PTVS team has been doing. You're doing great things for the Python community over there :).

Re: Show HN: Python Tools for Visual Studio

#24

Why is the photo hosted at imgur ? http://i.imgur.com/tyvjN.png

We want the link to be clickable so it opens full screen in your browser. Doing that from CodePlex is impossible AFAIK. For example if you copy an image location for some of our other images you get an url like: http://download-codeplex.sec.s-msft.com/Download?ProjectName.... If you put that in as a link, or just try and open it from your browser window, you get a download prompt instead of seeing the image. My guess this is because the content type on the downloaded file is not being set to be an image, so imgur lets us work around that.

Re: Show HN: Python Tools for Visual Studio

#25

"Send to Interactive"[0] In general, is there a particular reason we don't see this more often in tooling for other (REPL-friendly) languages, outside of the Lisps? Admittedly I haven't spent a significant amount of time in the Python community lately (so not sure if this is common in Python tooling or not), but after becoming addicted to SLIME via Clojure, I'd have killed to be able to dump Ruby blocks from my edito…

I'm currently struggling to find a satisfactory IDE for python for this exact reason. This seemingly obvious feature has to be hacked on to just about every popular coding tool. The best things I've found so far are the ipython web notebook (the only problem being that it stores my code as JSON and has poor/no keybindings) and emacs python-mode (which is buggy as all hell). NB: The only tool I've ever found that work…

I use WingIDE's[1] professional version (which includes the editor source code) and it has the ability to highlight a section and evaluate it either in the REPL or at the current breakpoint in a debug probe.

It also has decent vi and emacs keybinding support, really nice interactive debugger (including template debugging for Django) and great intellisense. It's the best Python IDE I have found, the support is great and I have been a very happy customer for three years now. (I was using emacs for everything before).

[1]http://wingware.com/

Re: Show HN: Python Tools for Visual Studio

#26
post #25

Earlier quoted context omitted.

I'm currently struggling to find a satisfactory IDE for python for this exact reason. This seemingly obvious feature has to be hacked on to just about every popular coding tool. The best things I've found so far are the ipython web notebook (the only problem being that it stores my code as JSON and has poor/no keybindings) and emacs python-mode (which is buggy as all hell). NB: The only tool I've ever found that work…

I use WingIDE's[1] professional version (which includes the editor source code) and it has the ability to highlight a section and evaluate it either in the REPL or at the current breakpoint in a debug probe. It also has decent vi and emacs keybinding support, really nice interactive debugger (including template debugging for Django) and great intellisense. It's the best Python IDE I have found, the support is great a…

Do you know if it supports ipython? I'm on the scientific computing side of the python world, so django is less important to me . . .

Re: Show HN: Python Tools for Visual Studio

#27
post #16
post #2

Hi folks, if you happen to be on Windows & enjoy Python, please check out our latest release of PTVS. It's a free/OSS plug-in for VS which supports CPython, IronPython, and the usual Edit/Debug/Profile/etc. now with Django & Client Libs for Linux & MacOS as well. Another cool feature we've added is the Parallel Stack / Watch view and Django template intellisense/debugging. Disclaimer: PTVS is built by few Python/OSS…

This looks fantastic. Do you know if there's any kind of similar implementation for Ruby? Would it be terribly complicated to do something similar for Ruby or a different dynamic language?

I attended a Microsoft talk given 4-6 years ago where they were talking about Iron Ruby development. A quick search shows that they have Visual Studio tools available: http://www.ironruby.net/tools/

Re: Show HN: Python Tools for Visual Studio

#30
post #2

Hi folks, if you happen to be on Windows & enjoy Python, please check out our latest release of PTVS. It's a free/OSS plug-in for VS which supports CPython, IronPython, and the usual Edit/Debug/Profile/etc. now with Django & Client Libs for Linux & MacOS as well. Another cool feature we've added is the Parallel Stack / Watch view and Django template intellisense/debugging. Disclaimer: PTVS is built by few Python/OSS…

It looks freaking awesome. I will definitely try it out! Thanks!
Post reply on HN