• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • Last Modified:

Running python

Hi,

Is is possible to run python code under visual studio 2010?

thanks
0
ayha1999
Asked:
ayha1999
  • 5
  • 3
  • 2
  • +1
3 Solutions
 
käµfm³d 👽Commented:
If you install IronPython, an implementation of Python that targets the CLR.
0
 
ayha1999Author Commented:
I have already downloaded but I can I use it under VS2010?
0
 
gelonidaCommented:
Python has basically nothing to do with Visual Studio.

It is a separate programming language not bound to any Integrated Development Environment (IDE)

If you mean with 'running under Visual Studio' being able to call windows functions, then you should look at Python's windows bindings:
You have Python modules (win32), which allow to call windows functionality.

You can also write DLLs with visual studio and call them from Python with the module ctypes or by creating a Python wrapper.

To use VisualStudio as IDE wouldn't be a good idea. For this you can use any of the existing Python IDE's or just a simple editor.

In order to avoid any misinterpretation of your question.

What exactly do you understand with "running under VisualStudio"?
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
gelonidaCommented:
As far as I know, but I didn't check recently. IronPython is no more really supported, so perhaps not the best way to go.
0
 
käµfm³d 👽Commented:
@gleonida

From http://blog.ironpython.net/, Wednesday, May 15, 2013
On behalf of the IronPython team, I'm happy to announce the first alpha release of IronPython 2.7.4.
Unless they stopped supporting it this month, I suppose that would indicate they are still supporting it  ; )
0
 
käµfm³d 👽Commented:
It's been a while since I've had IronPython installed on a machine (and I can't do so at work), but IIRC you may need to actually start a Python project in Visual Studio. Once you do that, I believe you will have access to a REPL interpreter via one of the windows--can't remember which one, unfortunately. I'm not sure if you can open the REPL without creating a Python project.
0
 
käµfm³d 👽Commented:
In browsing through the blog a bit futher, you *may* need to also install Python Tools for Visual Studio.
0
 
clockwatcherCommented:
Here's a walkthrough for installation and use on VS2010.  

http://ironpython.net/tools/IronPython-Tools-for-Visual-Studio-Walkthrough.pdf
0
 
gelonidaCommented:
@kaufmed

Thanks for the clarification.
It seems I rememeber badly an announcement one or two years ago
0
 
käµfm³d 👽Commented:
@gelonida

No worries. I think at one point it was that way.
0
 
ayha1999Author Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 5
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now