- Hello World: Preparation notebook to check if things work. If you want to run Python locally on your own machine instead of in the cloud, use this one.
- Python variables: Basic information on variables in Python -- Supplementary materials
- Text: Text strings and dictionaries -- Supplementary materials
- Flow control: Conditional statements, loops and functions -- Supplementary materials
- Reading and writing files: Reading and writing files from and to disk -- Supplementary materials
- Data wrangling with Pandas: Introduction to Pandas, the go-to library for data analysis. Loading, cleaning and transforming data for analysis -- Supplementary materials
- Working with Tweets: working with data from Twitter -- Supplementary materials
- (optional) Web Scraping and APIs: scraping the Web and APIs for data.
- (optional) Working with Texts: the Natural Language Processing pipeline to work with texts.
We will use some datasets from this course.
See a more detailed guide to setup your environment, with multiple options.
Using Google Colab, you can open our course materials from Github directly and keep the whole process in the cloud. View the list of class notebooks that are available for running and editing by going to your Google Colab: https://colab.research.google.com/ and loading them using the "Open Notebook" window, which appears when you first log in. Choose the GitHub option (second option from the right) and enter the GitHub link of our course materials: https://github.com/bloemj/2023-coding-the-humanities
-
Option 1 (recommended): Download the repository contents and use Jupyter Notebook. See the guide to setup your environment for more info.
-
Option 2 (advanced): work directly with git and conda. See the guide to setup your environment for more info.
-
Option 3 (fallback): Use Binder (link above). Keep in mind you need to download your notebooks to save them locally. (Note: Binder )
If you wish to write code without using Colab or a notebook, you will need an editor to write code and edit files offline on your own system. If you don't have a preferred one yet, check VSCode or Sublime Text
- Getting started with Jupyter notebooks
- On using git and GitHub for version control
- More on conda enviroments
- Conda cheatsheet
Various materials are re-purposed from:
- Materials used in this course (Spring 2023) are a 'fork' of last year's course materials taught by Jelke Bloem which was a 'fork' of the 2021 course materials taught by Leon van Wissen which was a 'fork' of the 2020 course materials by Giovanni Colavizza
- Applied Data Analysis, Oxford Digitial Humanities Summer School.
- Text Mining, Amsterdam University College.
- Python Programming for the Humanities.