Questions tagged [ptvs]

Python Tools for Visual Studio turns Visual Studio into a Python IDE. It's a free & open source plug-in for Visual Studio, written and supported by Microsoft and community.

Python Tools for Visual Studio turns Visual Studio into a Python IDE. It's a free & open source plug-in for Visual Studio from Microsoft. 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 attaching to running Python processes and debugging mixed Python/C++ code.

212 questions
0
votes
1 answer

Viewing/Printing Excel Interop Range Data

I'm using PTVS 2.1 Beta 2 with IronPython 2.7.4 + Excel Interop to access Excel ranges. How can I view/print the data contained in the Excel ranges? For example if I take a range from A1 to D4, how can I view the data contained within the 4x4 2D…
Ari
  • 4,121
  • 8
  • 40
  • 56
0
votes
1 answer

Why I cannot import this module in Python with PTVS?

I am using VS2013 with PTVS. I can see the module datasets with dir(): >>> dir() ['__builtins__', '__doc__', '__name__', '__package__', 'datasets', 'pprint'] And datasets is a module: >>> type(datasets) But I cannot import the…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
0
votes
1 answer

Javascript Intellisense in VS2013 (PTVS) How to Enable?

Why doesn't intellisense for javascript work in VS2013 Python Tools for Visual Studio (PTVS)? How do I enable intellisense for *.js files?
James
  • 2,488
  • 2
  • 28
  • 45
0
votes
1 answer

Need help on PTVS and python syntax

am using python for visual studio 2012 (PTVS2012). So far I only know C# and I have just started learning Python. I have a couple questions Ok so in C# from my knowledge you just make a method of any type such as an integer followed by the…
Foysal94
  • 565
  • 2
  • 7
  • 15
0
votes
1 answer

Install NLTK with IronPyton for VS2012

I am trying to install the NLTK with IronPython in VS2012. But when I tried to import the NLTK.book, i got the following error. The NLTK.book is the accompanying data for the book. Traceback (most recent call last): File "", line 1, in…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
0
votes
1 answer

Visual Studio 2012 alternative for Python built-in IDLE interactivly

It seems the built-in IDLE for Python has some performance degrade if too much content has been output. Is there a similar interactive console in Visual Studio for python?
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
0
votes
1 answer

Canopy with Visual Studio...

Does anybody have documentation on how to set up the Canopy Python environment as an interpreter within Visual Studio? I am new to VS and Canopy so I apologize if this seems trivial. I have read the following sites but still struggling to get…
0
votes
1 answer

Importing RPi.GPIO into a Python Project within Visual Studio

I just recently came across PTVS which provides a pretty killer environment for Python development. I was most excited when I found this because it seems that it could provide a clean and user friendly environment to develop and debug Raspberry Pi…
Jonathan
  • 589
  • 1
  • 13
  • 23
0
votes
1 answer

How to run commands from within Visual Studio PTVS?

I'm using Visual Studio 2012 and PTVS to play around with locustio and suds. I have setup an environment using virtualenv in Visual Studio and installed locustio, suds and all the associated dependencies. If I was to run locust via the command line…
Lord Kinboat
  • 13
  • 1
  • 2
0
votes
1 answer

Locating error lines in Python Tools For Visual Studio

When working with Pydev(Eclipse) if I run source code that has an error then Pydev provides a link to locate the error line in the editor by clicking it(like any IDE does). But, PTVS doesn't seem to have such a functionality. Is there any way to…
David Johns
  • 1,201
  • 5
  • 15
  • 34
0
votes
1 answer

Python Tools for Visual Studio erroneous autocomplete only for OpenCV library

Im using PTVS (Python Tools for Visual Studio). In my project, I use an external library, OpenCV, (referenced locally, not using pip/easy_install). Autocomplete/intellisense on this library only always displays nonsense characters (e.g. "Àt4èÚ" or…
user1202032
  • 1,430
  • 3
  • 15
  • 36
0
votes
1 answer

Cannot install MahApps assembly using IronPython in Visual Studio (with PTVS 2.0)

I am trying to create a MahApps styled WPF application using IronPython 2.7.3 in Visual Studio Ultimate 2012 with PTVS. However I cannot install MahApps.Metro via Nuget using the GUI. Choosing 'Install' in the Manage NuGet Packages console trows the…
John
  • 1
0
votes
1 answer

rdflib in python tools for Visual Studio

I want to use rdflib in python tools for Visual Studio. I installed both python tools and rdflib. When I write import rdflib in my project (in a file *.py) and launch it, it returns an error invalid literal for int() with base 10: 'value' and…
user1460819
  • 2,052
  • 5
  • 26
  • 35
0
votes
1 answer

OpenERP & Python Tools for Visual Studio compile error

I'm trying to get the OpenERP server to build and run in Visual Studio 2012 using Python Tools for Visual Studio. At the moment I get more than 2300 error messages, mostly along the lines of: unexpected token 'x1' I've downloaded the…
PW763
  • 251
  • 1
  • 6
  • 12
0
votes
1 answer

Compiling Python code from WPF into exe with Python Tools for Visual Studio

I've tried the pyc.py method of ipy.exe pyc.py /main:WpfApplication2.py /target:winexe, but that generates an exe file that does absolutely nothing. So how can it be done? I can't find anything else about it.
dantdj
  • 1,237
  • 3
  • 19
  • 40
1 2 3
14
15