Anaconda Visual Studio
Python Tools for Visual Studio is a free, open source pluginthat turns Visual Studio into a Python IDE.
If you have installed Anaconda as your default Python installation and installed PTVS, yourVisual Studio installation is already set to use Anaconda’s Python interpreter in PTVS.
- Visual Studio Code and the Python extension provide a great editor for data science scenarios. With native support for Jupyter notebooks combined with Anaconda, it's easy to get started. In this section, you will create a workspace for the tutorial, create an Anaconda environment with the data science modules needed for the tutorial, and create.
- When you install VS Code with Anaconda it comes with the Python Extension for Visual Studio Code for editing Python code, and the RedHat YAML extension for editing YAML files such as conda configuration files. When installing Anaconda, you may select whether to install VS Code.
To verify this, create a new Python project and then check whether Anacondais the Python that it uses.
Consider Visual Studio if you need to work with multiple languages and want the flexibility to customize your IDE. PyCharm vs Visual Studio PyCharm vs Anaconda. Anaconda is a Python distribution (set of libraries) focussed on data-driven projects while PyCharm is an IDE that also includes built-in support for Anaconda.
To create a new Python project:
In the File menu, select New, and then select Project. The keyboard shortcut is Ctrl-Shift-N.
Select Python Application:
To check which Python the project uses:
From the Tools menu, select Python Tools, and then selectPython Interactive. The keyboard shortcut is Alt+I:
In the Python Interactive window, type
importsysand then press Enter.Type
sys.versionand then press Enter.
If PTVS is using Anaconda, your Anaconda Python version is displayed. In the example below, it is Anaconda 1.5.0 (64-bit):

Vs Code Anaconda Extension Pack
If PTVS does not automatically discover Anaconda, see the official PTVSdocumentation, especially thesection on Selecting and Installing Python Interpretersand the PTVS installation instructions.
