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
3
votes
0 answers

Running same python code in visual is 5-6 times slower than jupyter

I am running same code ( equal no of lines and order) in visual studio and jupyter. It takes around 17 sec in visual studio while running same code in jupyter takes around 3 sec. Why this is happening ? Note : I am not running code in debugging…
user7739833
3
votes
1 answer

Visual Studio Tools for AI - Variable Explorer not loading

Installed VS Tools for AI and tried to run a python deep learning script. The script runs well on the Anaconda Interactive provided by the IDE. Problem is with the 'Variable Explorer'. It shows an error saying "Error retrieving environment…
3
votes
0 answers

IntelliSense not working well with Python in Visual Studio 2015

In Visual Studio 2015, while programming in C#, IntelliSense menu is automatically poping out when I press a character. Like in this image But the same is not happening when I use Python. The menu pops out only when I press ctr + space or when I…
darkavenger
  • 675
  • 1
  • 5
  • 11
3
votes
1 answer

Unable to resolve apiclient.discovery. Intellisense may be missing for this module

I have installed Visual Studio 2015 Community and a Python Tool for Visual Studio. But I can't get the Intellisense to recognize Google API that I installed via pip install google-api-python-client. Here's how my import looks like: from…
TLJ
  • 4,525
  • 2
  • 31
  • 46
3
votes
3 answers

Azure Flask Deployment - WSGI Interface

I'm currently working through the book Flask Web Development, Developing Web Applications with Python and am currently having some issues determining where I should place the WSGI interface so that I can deploy it to an Azure Web Service. For…
ScottMcC
  • 4,094
  • 1
  • 27
  • 35
3
votes
1 answer

Can I connect interactive Python Tools for Visual Studio with existing ipython kernel

I was wondering if it's possible to connect the interactive session in python tools for visual studio to an existing ipython kernel? I know you can connect a ipython qtconsole (which I assume PTVS is using) to an existing ipython kernel, and I can…
PHC
  • 173
  • 2
  • 11
3
votes
1 answer

Is there any way to debug Python code embedded in C# with Visual Studio and PTVS?

I've created the code to embed IronPython code in C# public ScriptEngine GetEngine() { if( _engine != null ) return _engine; _engine = Python.CreateEngine(); var paths = _engine.GetSearchPaths(); …
Kaerber
  • 1,623
  • 16
  • 21
3
votes
1 answer

"Unsupported Python Version: 3.5" in Visual Studio 2013

First I thought this is a version problem, so I downgraded the version from python 3.5 to 2.7 but still it didn't work. The same error "Unsupported python version 3.5". Please help. Note: I've installed the plugin for python in visual studio stated…
user3052820
3
votes
0 answers

Unable to debug on Raspberry Pi using python tools for visual studio

I've been trying to debug a python code on my RPi from VS2013 using python tools for visual studio, but failed all the time to connect to the python console running in Pi, this is my code frag.in Pi: import ptvsd ptvsd.enable_attach('secret',address…
3
votes
1 answer

Program Database (PDB) symbols for Python

I downloaded and installed the Python 2.7.6 64-bit Windows distribution (python-2.7.6.amd64.msi) and also downloaded the source code (Python-2.7.6.tgz) and PDB symbols (python-2.7.6.amd64-pdb.zip), all from http://python.org/ftp/python/2.7.6/, and…
1''
  • 26,823
  • 32
  • 143
  • 200
3
votes
1 answer

Console Window Appears while debugging Python code using PTVS in Visual Studio

I have integrated PTVS into Visual studio so that i can have intellisense support and debugging capability. I set Breakpoints at Function definitions, but when i debug the control goes directly out of function. And in some points the Console window…
Jonas
  • 375
  • 2
  • 6
  • 20
3
votes
2 answers

How can I use the Python Tools for Visual Studio mixed mode debugger with Enthought Canopy Distribution?

I use Enthought Canopy as my python distribution due to its suitability for scientific computation. However, I use pytools in Visual Studio as my IDE primarily because of its superior debugging compared to other IDEs for Windows. Since version 2.0,…
Tim Rae
  • 3,167
  • 2
  • 28
  • 35
2
votes
1 answer

Run an NGC Container in VS Code on Ubuntu

I need to run a Python script within an NVIDA GPU Cloud (NGC) container on Docker in Ubuntu and I want to use Visual Studio Code to edit, run and debug it. I have installed the VS Code Docker Extension and read the documentation but none of it seems…
empty
  • 5,194
  • 3
  • 32
  • 58
2
votes
0 answers

VSCode ptvsd: debugging not working, dissappear, no debug console log

I just move my Django app to use docker, but when I try to use the debugger, now it just disappears, not even a debug console log is outputted I already add this following code to manage.py # Allow other computers to attach to ptvsd at this…
otong
  • 1,387
  • 2
  • 17
  • 28
2
votes
1 answer

PTVS cant find Python interpreter?

I just copied my Flask project from one machine to another. I have same version of Python installed on both the machines. When I loaded the project in the new machine, it said my virtual environment is unavailable. So I initially tried to install it…
karun_r
  • 183
  • 1
  • 2
  • 14