Visual Studio Code for Data Science — the Power User’s guide

Rohith Kumar Sajja
DataSeries
Published in
4 min readJul 22, 2020

--

The quintessential IDE?

Visual Studio Code
Source: Visual Studio Code on Wikipedia

Microsoft’s Visual Studio Code is arguably one of the best IDEs for developers. The same is true for Data Scientists. There are numerous tools and extensions in the VS Code that enable users with great user experience.

Setup

Install the Python for VS Code extension

For R, install R extension

Environments

Often, you will require packages and modules that are not available by default installation. Some libraries or applications specify a particular version of a library to be used. Virtual environments are useful in these cases.

You can setup Python using Python distributions using Anaconda.

To manage your environment, in VS Code, you can select an environment of your choice from the Command Palette ( ⇧⌘P ) > Python: Select Interpreter.

Selecting a Python environment

Workspaces

Workspace Settings are stored inside your workspace and only apply when the workspace is opened. They override the global user settings. This way each of the Data Science…

--

--

Rohith Kumar Sajja
DataSeries

ML & AI enthusiast. Graduate student at the UofA. More about me on my portfolio at https://rsajja.dev