Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Announcing Python Tools for Visual Studio 1.1 Alpha

Download

Right click “Save as…”

Python Tools for Visual Studio 1.1 is now available in Alpha!

PTVS turns VS into an IDE for Python
. PTVS a free, open source plug-in for Visual Studio 2010 from Microsoft's Developer Division. PTVS enables developers to use all the major productivity features of Visual Studio to build Python code using either CPython or IronPython and adds new features such as using High Performance Computing clusters to scale your code. Together with one of the standard distros, you can turn Visual Studio into a powerful Technical Computing IDE.

Here, we chat with PTVS architect Sean Mortazavi and lead developer Dino Viehland to learn all about this release and see some really cool demos. This is great news for Python developers! Tune in.

Tags:

Follow the Discussion

  • Very good work! I use Python Tools a lot and it is awesome Smiley

    Any plans to infer generic types too? That way you'd have the example with the function foo that just returns its argument infer the string methods for foo("bar") and the integer methods for foo(42), even if you have both in the same file. Languages like F# already infer types that way, perhaps their algorithm could be adapted.

  • This.....is.....awesome

    Been a programmer and a scripter, this really makes sense.
    I used to create tools for a charity I did Work Experience for, and WxPython was my primary GUI toolkit. Python is brill for admin scripting.

    Having Python for Visual Studio is brilliant, what would be great is if 
    Visual Studio Express came with something like that. 

    Tom  

  • Dino ViehlandDino Viehland

    Jules.dot: To support that we'd need to fully understand model the flow control of the program and then analyze calls based upon the Cartesian product of their arguments. Currently we're control flow independent and we just combine all of the types being passed to each argument together.

    It's certainly something I'd love to do at some point but it's currently pretty low on the priority list. There would still be the issue of what completions to show within the method but we could continue to offer our intersection or union option there.

  • , Tominator20​05 wrote

    what would be great is if 

    Visual Studio Express came with something like that.

     

    You can use it with the free VS Integrated Shell.

  • NewWorldMan is correct - see the installation instructions at:

    http://pytools.codeplex.com/wikipage?title=Installation%20-%20details 

    1. click to download the free Integrated Shell

    2. click to download PTVS

    and you have a virtual "Visual Python 2010 Express" edition.

    PTVS isn't "in the box", but this enables us to release much more frequently.

    Cheers.

  • Sean, what you are doing is amazing. As I have said in my post, I'd love to get involved in this, even though I live in the UK. If you have ever used WxWidgets or PyGTK, a resource editor in Visual Studio for that type of stuff would be awesome. Give me plenty of time, and I can try working on a resource editor for WxWidgets at least, although I have no idea where to start in making toolbox like items for a windows editor.

  • Dino ViehlandDino Viehland

    Tominator2005: That'd be awesome!

    For the toolbox you probably want to look at the IVsToolbox[2,3,4,5,6] interfaces, you can get an instance of one by calling Package.GetService(typeof(SVsToolbox)). I suspect you call AddItem w/ an IDataObject and then get that same object back when the user drops it onto your editor window.

  • shaggygishaggygi

    This is a basic Python question ( I'm a newbie to Python )....

    Do you have any links/documentation on how to call C# Classes/Methods from Python?

  • Dino ViehlandDino Viehland

    shaggygi: In general you do:

    import clr
    clr.AddReference('AssemblyName')
    from Namespace import Type

    For example:

    import clr
    clr.AddReference("System.Windows.Forms")
    from System.Windows.Forms import Form

    This requires using IronPython or installing Python.NET [http://pythonnet.sourceforge.net/] if you're using CPython.

    From there you can do:

    f = Form()
    f.ShowDialog()

    Or in other words you can interact with the types as if they're normal Python types.

    When working w/ your own types the biggest gotcha is to make sure you make them public.

  • shaggygishaggygi

    @Dino Viehland

    Thanks! This will be a big help to get me started.

  • Tominator2005: That'd be awesome!

    For the toolbox you probably want to look at the IVsToolbox[2,3,4,5,6] interfaces, you can get an instance of one by calling Package.GetService(typeof(SVsToolbox)). I suspect you call AddItem w/ an IDataObject and then get that same object back when the user drops it onto your editor window.

    My background is a HND in Computing, and I only did a small amount of programming in that, which I regret. Is there anyway, I can contact you via email or messenger. This is gonna be tough job and I'll need occasional help.

  • This is really cool!  Awesome IDE for Python! 

    Can Python be used or will it be available for Metro Style Apps in Windows 8?  Can it talk to the WinRT?

    Long live Python and the Knights who say Ni!

  • I know you can't reveal everything you are working on.  But you like to hear feedback from developers about what they would like to see.  I would like to see a version of Python that integrates with the WinRT, i.e. that can be used with Metro Style Apps.

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.