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
1
vote
0 answers

What is the proper way to include a python class from another visual studio project?

In visual studio 2013, I made up a python solution with a source code project PythonApplication1 and a unit test project named PythonApplication.UnitTests. This is the folder structure: In the unit test project, I added a search path to the…
Blackbriar
  • 477
  • 4
  • 14
1
vote
1 answer

How to configure PythonAnalyzer to look for standard library typings?

I am creating a PythonAnalyzer using the following code: var interpreterFactory = InterpreterFactoryCreator.CreateAnalysisInterpreterFactory( PythonLanguageVersion.V36.ToVersion()); var analyzer =…
LOST
  • 2,956
  • 3
  • 25
  • 40
1
vote
0 answers

VS2017 Django Web Project build fails without bin folder

I have created a Django Web Project in Visual Studio 2017 and i have tried serving static files from a directory defined in STATICFILES_DIRS in settings.py. settings.py: STATICFILES_DIRS = ( os.path.join( BASE_DIR, 'static', …
1
vote
2 answers

PTVSD Visual Studio version mismatch

I' trying to debug a remote python application in a Linux system from Visual Studio 2013 using ptvsd. I followed the tutorial in here The problem is that I am getting this error even when both versions, the Linux one and the VS one are the latest…
user1618465
  • 1,813
  • 2
  • 32
  • 58
1
vote
1 answer

Anaconda with PTVS - "conda list" vs "pip list" and PTVS differ

I created a new anaconda enviroment using "conda env create -n TestOne" which created a new Python 3.5 environment with no packages installed. I am using PTVS with Visual Studio and I manually added the new environment and paths as per the…
Dru
  • 357
  • 4
  • 13
1
vote
1 answer

Runtime error when scaling up django app from free to basic app service

I am getting a runtime error when scaling up my django app from a free plan to a basic plan on azure. It appears to be a configuration problem. Here is what I have found: When visiting my site, I get this error: Server Error in '/'…
bkramer
  • 49
  • 1
  • 8
1
vote
1 answer

Python IntelliSense/Code Completion in VS 2015

It appears that there are IntelliSense issues working with Python in Visual Studio 2015? I can't find a definitive answer or fix but may just be doing something wrong... I have seen posts about adding IntelliSense for a module outside of your…
1
vote
1 answer

I am trying to use PTVS in visual studio, but cannot set python interpreter

I am trying to use PTVS in visual studio, but cannot set python interpreter. I installed visual studio enterprise 2015 and installed python 3.5.2. I opened python environment in visual studio, but I cannot find installed interpreter, even cannot…
1
vote
0 answers

Python in Visual Studio 2010 (PVTS) can't debug

I have Visual Studio 2010 Shell and Python 2.7.8 on my machine and I installed PTVS 2.1.1 VS 2010. Everything appeared to install correctly. I can create a python application and run the code using 'Debug > Start Without Debugging'. This pops up…
bighill
  • 13
  • 3
1
vote
4 answers

Visual Studio Python Environments window does not display

I have installed Win10, Visual Studio 2015, Python 2.7, Python 3.5 and PTVS 2.2.3. Unfortunately PTVS does not work at all. I can not load any Python projects that were loading previously in Visual Studio. It worked before I installed Python 3.5. I…
1
vote
1 answer

Visual studio completion python

I'm new to python in visual studio..I'm trying to have the same environment of sublime text. I configured everything auto-formatting , auto-completion etc... But when I write essential keyword like "self", the tool doesn't suggest me the keyword So…
elpie89
  • 85
  • 1
  • 10
1
vote
1 answer

How to specify language for watch window expressions in a multi-language debugging environment?

How does Visual Studio switch between python and C# expressions when debugging a process that mixes both C# an Python by embedding and invoking python interpreter? For background: My Visual Studio 2015 with PTVS 2.2.2 did not allow me to specify any…
Joe
  • 631
  • 2
  • 7
  • 18
1
vote
1 answer

PTVS 2015 Numpy Install

I am attempting to use the dialog box to install numpy in a VS2015 Python 2.7 project like so: When I run it, I get the following message: You are using pip version 6.1.1, however version 8.0.2 is available. You should consider upgrading via the…
Jamie Dixon
  • 4,204
  • 4
  • 25
  • 47
1
vote
1 answer

Comfortable use of PTVS Debugger

I have a C# environment in which I use IronPython scripts. I want to debug these using Visual Studio i.e. PTVS. I set everything up and it does work, but it works only once. After I stop the debugger or the scripts ends, I cannot attach to the…
Marcel Bonzelet
  • 238
  • 2
  • 13
1
vote
0 answers

Does Python Tools for Visual Studio support discovering unit tests when using any python interpreter other than IronPython?

I have a couple of ActiveState python 2.7 interpreters, and one IronPython interpreter in my Python environments setup and in the same project. Whenever I switch to make IronPython interpreter the active one, Visual Studio Test Explorer is able to…
Joe
  • 631
  • 2
  • 7
  • 18