Python Introduction
2023W 070128-1 Methodological course - Analyzing Central Europe's Intellectual Heritage
General Shortcuts
Ctrl + Shift + X
: extension manager
Ctrl + Shift + P
: command palette
Ctrl + Shift + G
: source control view
Repository Setup
- fork this repository in GitLab to have a private copy
- open VS Code
- clone git repository via command palette:
Git: Clone
- use
https
and notssh
with your username and password - if asked, open cloned repository in a new window
- download an image from the internet and add it to this readme
- make a git commit via the source control view and push the changes to GitLab
Python Setup
- create virtual environment
.venv
via command palette:Python: Create environment
- install project requirements
- open a new terminal via menu: (
Terminal > New Terminal
) - verify you are using the virtual environment
- install dependencies via python packet manager
pip install -r requirements.txt
- list the installed packages via python packet manager
pip freeze
- close the terminal
- open the first Jupyter Notebook and install package if needed
Part 1 - Web Resources
This notebooks gives an introduction how to us data sources from the internet using the requests
library.
Part 2 - XML Data
Parsing and analysis of TEI-XML data using lxml
library.
Part 3 - CSV Data
Analysis of spreadsheets with pandas
data frames.
Part 4 - Image Data
Manipulation of images with Pillow
and object detection using ultralytics