This first part of Block 1 introduces the tools and working environment that will be used throughout the course.
The following objectives are fundamental to the course. You are expected to complete the exercises to develop core technical proficiency.
- Set up VS Code, Git/GitHub, and the Python programming environment
- Become familiar with procedures for accessing course materials and uploading your work to GitHub
The following objectives contribute to the assessment, which involves creating and maintaining a GitHub profile. This will help you build a portfolio for future coursework and professional use.
- Create a GitHub profile
README.mdpage using VS Code - Create Portfolio 1 for the Block 1 exercises
You will need to download and install the following software.
- Download: https://code.visualstudio.com/Download
Recommended activities:
- Explore core functions: https://code.visualstudio.com/docs
- Follow Python setup instructions: https://code.visualstudio.com/docs/python/python-quick-start
- Explore built-in and AI extensions: https://code.visualstudio.com/docs/intelligentapps/overview
Recommended extensions:
- Python
- Jupyter
- GitHub Copilot
- Markdown Shortcuts
- Code Spell Checker
Choose one distribution:
- Anaconda: https://www.anaconda.com/download
- Miniconda: https://www.anaconda.com/docs/getting-started/miniconda/install
- Download and install Git: https://git-scm.com/install
-
Geographic Software Design playlist:
https://www.youtube.com/@giswqs -
Installing Visual Studio Code, Git, and Miniconda:
https://www.youtube.com/watch?v=9zmXL2ppves
The following exercises should be completed during and after your engagement with the learning resources.
Create a public repository that will act as your GitHub profile page.
Steps:
- Log in to GitHub
- Click New repository
- Set:
- Repository name: your exact GitHub username (e.g.
YangWang-Glasgow) - Public: enabled
- Initialize with README: enabled
- Repository name: your exact GitHub username (e.g.
- Click Create repository
- Open VS Code
- Press
Ctrl + Shift + P(orCmd + Shift + Pon macOS) - Select Git: Clone
- Paste:
https://github.com/your-username/your-username.git - Choose a local folder and click Open
cd your-folder
git clone https://github.com/your-username/your-username.git- Open
README.mdin VS Code - Write content using Markdown
Template resources:
- https://github.com/abhisheknaiidu/awesome-github-profile-readme
- https://github.com/coderjojo/creative-profile-readme
Markdown references:
- https://www.markdownguide.org/cheat-sheet
- https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
Markdown preview in VS Code:
Ctrl + Shift + VCtrl + KthenV
- Open the Source Control panel
- Stage changes (
+) - Write a commit message (e.g.
update README.md) - Click Commit
- Click Push or Sync
- Check your GitHub profile page for updates
- Post your GitHub profile link on the Moodle forum
- The repository must be public
- Submissions are visible to all students
This exercise explains how to set up a Python environment in VS Code using Anaconda or Miniconda.
- Open VS Code
- Go to Extensions (
Ctrl + Shift + X) - Search for Python (Microsoft)
- Click Install
Open the VS Code terminal and run:
conda --versionIf a version number appears, Conda is installed correctly.
conda create -n course-env python=3.13.1
conda activate course-envYou should see (course-env) in the terminal prompt.
Note that, if you cannot active course-env, try to switch to 'Command Prompt' by
- press Ctrl + Shift + P
- Select the terminal profile, type:
Terminal: Select Default Profile
- From the list, select:
Command Prompt
- Open a new terminal by Terminal → New Terminal or press Ctrl + `
You should now see a prompt like: C:\Users... (not PS C:...)
- Activate Conda
conda activate course-env
You should see: (course-env) C:\Users...
- Press
Ctrl + Shift + P - Select Python: Select Interpreter
- Choose:
conda | course-env | Python 3.13.1
conda install numpy pandas matplotlibAlways activate the environment before installing packages.
Create test.py:
import numpy as np
import pandas as pd
print(np.__version__)
print(pd.__version__)Run:
python test.pyconda install jupyterOpen a .ipynb file and select course-env as the kernel.