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
2
votes
1 answer

Refactoring Actions are Disabled - Python Tools for Visual Studio

When trying to, e.g., rename variables, the actions within the refactor context menu are disabled. Keybinds for these actions are also disabled. I tried this with PTVS 2.0 and 2.1 beta in Visual Studio 2013. I do also have ReSharper installed, but I…
dss539
  • 6,804
  • 2
  • 34
  • 64
2
votes
1 answer

Create a python distribution directly using PTVS

Can I create a 'Python Distribution' with my module directly using PTVS(Python Tools for Visual Studio) ? I have done this before using command line but not using PTVS. If yes, how ? Thanks!
XZ6H
  • 1,779
  • 19
  • 25
2
votes
3 answers

Working with PTVS, IronPython and MongoDB

I want to develop an applocation using the PTVS (Python Tools for Visual Studio) and i download the PTVS pluging and IronPython for Visual Studio 2012, it works perfectly. My question here is, Can i use MongoDB with PTVS and ItonPython? If i can,…
Jesús Cota
  • 515
  • 1
  • 4
  • 14
2
votes
1 answer

How can I use IPython's search history function in PTVS?

I recently made the transition from IPython command windows + N++ to Python Tools for Visual Studio, mainly for rich code completion (it can search non-standard libraries such as NumPy!), but also because it looks good! The only thing I'm missing…
PhilMacKay
  • 865
  • 2
  • 10
  • 22
2
votes
2 answers

Editing autocomplete settings in Visual Studio 2013 (PTVS)

I am trying to switch from Pycharm to Visual Studio 2013 (PTVS), however I cannot find how to change settings for auto-completion popups. For example, in Pycharm whenever you start writing something, it automatically gives you a list of possible…
HamsterWithPitchfork
  • 750
  • 1
  • 12
  • 21
2
votes
1 answer

can .ptvs be saftely git ignored?

I'm using visual studio 2013 and the python tools for visual studio. While setting up the project i've begun adding to the standard VS .gitignore as it doesn't cover the tools. I have a subdirectory labeled .ptvs in my environments folder. …
Highstead
  • 2,291
  • 3
  • 26
  • 30
2
votes
1 answer

Pre- and post-build steps in Python Tools For Visual Studio

I'm trying to switch over from Aptana to PTVS but I'm stymied by an inability to configure the build process. I'd like to add a pre-build step that runs some tests and a post-build step that runs a zip packager / deployment script -- however I'm…
theodox
  • 12,028
  • 3
  • 23
  • 36
2
votes
0 answers

Render graphical output in PTVS for visual studio with IPython REPL

I am using IPython as the interactive prompt on PyTools for Visual Studio for 2013. The inline rendering of charts/plots in the REPL is very low quality. Nowhere near the quality of notebook rendering in the browser. If there some setting I am…
John
  • 41,131
  • 31
  • 82
  • 106
2
votes
1 answer

Can I say Python Tools for Visual Studio is better than Pydev+Eclipse in debugging?

Assuming you already have Visual Studio, then seems this Python Tools for Visual Studio (PTVS) is a better choice in debugging. Sometimes, Pydev's debugging will never hit certain breakpoints and just hang(the python native PDB still works), while…
gpliu
  • 229
  • 3
  • 14
2
votes
0 answers

Python Tools for Visual Studio: Way to remap dash key to underscore?

Using Visual Studio 2010 with Python Tools for Visual Studio. I find typing an underscore in python variable names inconvenient. Is there a way to remap the - (dash key) to the underscore and Shif+- (shift + dash) to a dash? Similar to Smart-dash…
User
  • 62,498
  • 72
  • 186
  • 247
2
votes
1 answer

How to debug Python running on a local lighttpd server using Python Tools for Visual Studio (PTVS)

Visual Studio has great python support via the Python Tools for Visual Studio: http://pytools.codeplex.com/ Debugging python code in Visual Studio works as expected. I set up a lighttpd server on my local Windows machine, and I have python scripts…
GravityWell
  • 1,547
  • 1
  • 18
  • 22
2
votes
1 answer

PTVS doesn't detect IronPython installation

I wanted to change interpreter to IronPython in Visual Studio 2010 with Python Tools for Visual Studio. Last time I hadn't problems with this I got CPython and IronPython on list but now IronPython magically disappeared. After this I tried to…
zwierzak
  • 269
  • 1
  • 4
  • 12
2
votes
0 answers

IntelliSense doesn't work properly for python in C# Project- Visual Studio 2010

I have project that in VS is a C# project, but inside of it I have many IronPython sources. Out of box PTVS is highlighting syntax and IntelliSense is working with System modules. But I also have some assemblies (properly linked by references to…
zwierzak
  • 269
  • 1
  • 4
  • 12
1
vote
1 answer

PyQT and Visual Studio 2010

I'm using PyQT v4.9 for Windows 7, and Visual Studio 2010 (extension PTVS 1.1 ) Autocomplete is good function in IDE. Example: object.method_of_class() #when I press the dot, see a list of possible methods. But with pyqt class, this not works,…
Evgenii G.
  • 45
  • 2
  • 8
1
vote
1 answer

Error message which running Python tools in Visual Studio

I am new to python and just started learning it today. I have installed Python Tools for Visual Studio 2010 and using VS as my Editor. My test python programs run correctly but the at the last line in the output window I see the following The thread…
John Connor
  • 3,347
  • 3
  • 18
  • 13