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

Visual Studio Python WPF debugging

So I spend almost all of my programming time on Linux, but recently, for a project, I had to try out PTVS and WPF. As it is a very good framework, I would like to learn it further, but the issue in question is a huge disadvantage when compared to…
Dmitry Orlov
  • 454
  • 6
  • 14
2
votes
2 answers

VS 2015 Python Environments Greyed Out

I'm just getting started with Python and I want to use Visual Studio 2015 Community Edition (VS) for writing my code. However, after diligently following the instructions on GitHub (1) Install PTVS 2.2.2 (2) Install Windows Python 3.4.4, VS cannot…
yotown
  • 23
  • 5
2
votes
0 answers

VSCode, Python: error: release unlocked lock

I am running a python process in a remote Linux machine and debug with a MAC. The remote system launches processes that share the same set of files. From time to time when stepping through code, I hit the following: File…
Jagan
  • 21
  • 3
2
votes
2 answers

python tools visual studio - step into not working

I am trying to debug a scrapy project , built in Python 2.7.1 in visual studio 2013. I am able to reach breakpoints, but when I do step into/ step over the debugger seems to continue the exceution as if I did resume (F5). I am working with…
omer schleifer
  • 3,897
  • 5
  • 31
  • 42
2
votes
1 answer

Microsoft Visual Studio 2015 Interactive window dicconnected - tried many solutions, can't work

My issue is : I tried to run Python in the Visual Studio Express Desktop 2015, but the interactive window shows "disconnected". There is an error in the interactive window: An internal error has occurred in the Interactive window. Please restart…
Angela Y
  • 115
  • 2
  • 8
2
votes
1 answer

Why is PTVS so slow?

VS2015 with the l&g PTVS looks great. But any non-trivial project runs about 20-50 times slower under a debugger (F5) than without one (Ctrl-F5), which makes it totally unusable for debugging. Any idea why? Is there any way to accelerate the…
Paul Oyster
  • 1,133
  • 1
  • 12
  • 21
2
votes
1 answer

How to run Django manage.py commands in Python Tools for Visual Studio?

Development using Django requires running manage.py commands once in a while. I'm using Python Tools for Visual Studio (PTVS) with VS 2015 community ed. Some manage.py commands (like syncdb) are accessible from the menu when a project is created…
epsylon
  • 357
  • 3
  • 13
2
votes
1 answer

How to attach to running python script via PTVS at beginning of execution

I want to attach to a python script that is called by another program (.exe). I am developing the python script. Right now, I am using (Python 2.7) raw_input("Press Enter to continue and/or attach debugger...") to make the script wait and attach…
Andreas Reiff
  • 7,961
  • 10
  • 50
  • 104
2
votes
1 answer

Python Tools for Visual Studio - generate exe

is PTVS capable of generating exe file from a Visual Studio Python project or do I have to do it manually using e.g. py2exe?
Martin Dusek
  • 1,170
  • 3
  • 16
  • 41
2
votes
0 answers

PTVS no intellisense in IronPython project

I'm using VS2013 with PTVS and have the problem, that i have no IntelliSense support for self written c#/.net assemblies. The assemblies are all referenced in the project. I'm using .net framework 4.5.1. The referenced system dlls are available via…
BendEg
  • 20,098
  • 17
  • 57
  • 131
2
votes
0 answers

IronPython PTVS Test Debug: how to enable -X:Tracing and -X:Frames

So I have a very simple module I import that I want to do unit testing on called Two. It has a function, red, that will just replicate the functionality of all(). The code below runs fine, but when I try debugging it, I get: Test Name: …
Carbon
  • 3,828
  • 3
  • 24
  • 51
2
votes
2 answers

Python Tools for Visual Studio 2013 Refreshing DB Issue

I would like to use Python Tools for Visual Studio 2013 I have installed Annaconda Python Distribution 64bit. I have VS 2013 Ultimate. When I try to refresh the DB in the Python Tools it gets like 60% progress and then stops. After that the DB…
Zwierzak
  • 666
  • 1
  • 11
  • 31
2
votes
1 answer

PTVS plotting pandas Dataframes and Series with matplotlib in python debug interactive

Is it possible to plot pandas objects inside the PTVS interactive debugger? Is it possible to save plots to disk as jpeg's? I think I was able to do this when I first started using PTVS (last year, its awesome by the way!) but I just tried again and…
JasonEdinburgh
  • 669
  • 1
  • 10
  • 17
2
votes
1 answer

Python 3.4 Visual Studio PTVS Incorrect Intellisense

I have installed Visual Studio 2013 Community and Python Tools for Visual Studio 2.1 with Python 3.4.2 on Windows Server 2012. The intellisense does not appear to be working correctly import gspread import requests import json # correctly calls gc…
Matthew Crews
  • 4,105
  • 7
  • 33
  • 57
2
votes
1 answer

Cannot import PyQt in Python Tools for Visual Studio 2013 and no auto-completion

I am using Python Tools for Visual Studio 2013. Now I also want to use PyQt for my User Interface. I successfully installed PyQt and used it in other IDEs (e.g. PyCharm). Now I want to import PyQt in Visual Studio 2013, but it down't work. This…
Exa
  • 4,020
  • 7
  • 43
  • 60