Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Running python

Posted on 2013-06-06
11
Medium Priority
?
331 Views
Last Modified: 2013-06-12
Hi,

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

thanks
0
Comment
Question by:ayha1999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 336 total points
ID: 39225304
If you install IronPython, an implementation of Python that targets the CLR.
0
 
LVL 7

Author Comment

by:ayha1999
ID: 39225319
I have already downloaded but I can I use it under VS2010?
0
 
LVL 17

Assisted Solution

by:gelonida
gelonida earned 332 total points
ID: 39225390
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
Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

 
LVL 17

Expert Comment

by:gelonida
ID: 39225393
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
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39225534
@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
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39225542
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
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39225548
In browsing through the blog a bit futher, you *may* need to also install Python Tools for Visual Studio.
0
 
LVL 25

Assisted Solution

by:clockwatcher
clockwatcher earned 332 total points
ID: 39225962
Here's a walkthrough for installation and use on VS2010.  

http://ironpython.net/tools/IronPython-Tools-for-Visual-Studio-Walkthrough.pdf
0
 
LVL 17

Expert Comment

by:gelonida
ID: 39226312
@kaufmed

Thanks for the clarification.
It seems I rememeber badly an announcement one or two years ago
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39226654
@gelonida

No worries. I think at one point it was that way.
0
 
LVL 7

Author Closing Comment

by:ayha1999
ID: 39241471
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing Python 2.7.3 version on Windows operating system For installing Python first we need to download Python's latest version from URL" www.python.org " You can also get information on Python scripting language from the above mentioned we…
Here I am using Python IDLE(GUI) to write a simple program and save it, so that we can just execute it in future. Because when we write any program and exit from Python then program that we have written will be lost. So for not losing our program we…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question