Installing Python and VSCode
To follow this course you need:
A Python enviroment (we will use Anaconda)
A git enviroment
A text editor (we will use VSCode, alternatives are Sublime, Atom, and PyCharm)
A step-by-step guide is provided below.
Step 1: Anaconda
Note: The installation might fail if your computer username contains a space or special characters (æ, ø, å, ê, â, î, ô, û, ä, ö, ë, ï, ü, ÿ etc.). The easiest solution is to change your username (otherwise you need to install Anaconda on a path not containing your user name).
Step 1a: Main
Download Anaconda Individual Edition Python 3.9 from https://www.anaconda.com/products/individual
Run the installer (default settings are fine)
Step 1b: JupyterLab extensions
Open the program Anaconda Prompt (Windows) or Terminal (Mac). Paste in following commands and hit Enter one by one:
conda update --all
conda install -c conda-forge nodejs
conda install -c conda-forge ipympl
conda install -c conda-forge ipywidgets
Step 2: Git and JupyterLab Git extension
Git
Go to GitHub.com and sign up
Download git from https://git-scm.com/
Run installer with all the custom settings
JupyterLab Git extension
Open the program Anaconda Prompt (Windows) or Terminal (Mac) (close and open it again if already open) and paste in:
conda install -c conda-forge jupyterlab jupyterlab-git
Step 3: Variable inspector for JupyterLab
Open the program Anaconda Prompt (Windows) or Terminal (Mac) and paste in
pip install lckr-jupyterlab-variableinspector
If you get an error message, try the following command instead
conda install -c conda-forge jupyterlab-variableinspector
Step 4: VSCode
Download VSCode from https://code.visualstudio.com/
Run the installer (default settings are fine)
Open VSCode
Press Ctrl+Shift+P
Paste in
Extensions: Install Extensions
and hit EnterIn the left panel: Search for and install the following extension (if not already installed):
Python (by Microsoft, see also the marketplace website)
Press Ctrl+Shift+P again
Paste in
Python: Select Interpreter
and choose the option where "anaconda3" is part of the path.If on Windows: Ctrl+Shift+P + paste in
Terminal: Select Default Shell
hit and chooseCommand Prompt