Technical notes‎ > ‎

Using Visual Studio Code

It can be tricky to setup a complete Python development environment on Windows. The easiest way to setup is to use anaconda which has built-in Python (also comes with many packages by default such as nltk, numpy, etc.) and use an IDE with it.

  1. Download and install https://www.anaconda.com/download/
  2. Install Visual Studio code https://code.visualstudio.com/docs/setup/setup-overview
  3. Download Visual Studio cheat sheet https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference
  4. Install Python module for Visual Studio code https://code.visualstudio.com/docs/python/python-tutorial
  5. Enable unittest (File > Preferences > Settings), this will open settings.json. Edit the right pane (USER SETTINGS) to something like this
// Place your settings in this file to overwrite the default settings { "python.unitTest.unittestEnabled": true, "python.unitTest.pyTestEnabled": false, "python.unitTest.nosetestsEnabled": false }
Using a local virtual environment (i.e. project_folder/environment_folder) 
// Put this into .vscode/settings.json
{
"python.pythonPath": "${workspaceFolder}/env_python3/bin/python"
}
[To be updated]
Comments