Python,
for Humanists.
A home for free textbooks, video lessons, and a full course teaching Python to humanists, sociologists, and researchers new to programming. Used in more than 50 countries.
Free Textbooks
Book-length guides to the tools of computational humanities.
Built with JupyterBook, kept free, and hosted on their own sites so you can read them end-to-end or dip into a chapter.
Textbook
Python for Humanists
A gentle, book-length introduction to Python written for those with no programming background.
Read
Textbook
Named Entity Recognition
How to extract people, places, and organizations from unstructured text using spaCy and rule-based methods.
Read
Textbook
spaCy
Based on the popular freeCodeCamp course. A practical tour of spaCy's pipelines and linguistic features.
Read
Textbook
BookNLP
Working with BookNLP to perform literary-scale NLP: characters, quotations, supersense tagging, and more.
Read
Textbook
Pandas for Humanists
A practical, humanities-flavoured tour of pandas: building DataFrames, cleaning messy spreadsheets, filtering, grouping, and exporting.
Read
Textbook
Intermediate Python for Humanists
The next step after the basics: enumerate, zip, map, filter, lambda, comprehensions, generators, and Counter.
Read
Video Lessons
Four YouTube playlists — watch along at your own pace.
Playlist
Introduction to Python
A beginner's playlist walking through Python basics with humanities examples.
Watch on YouTube
Playlist
spaCy
Videos on working with spaCy pipelines, matchers, and custom components.
Watch on YouTube
Playlist
Social Network Analysis
Building and analyzing networks with NetworkX for historical and literary data.
Watch on YouTube
Playlist
PyVis Visualizations
Interactive browser-based network graphs with PyVis.
Watch on YouTube
The Course
Python for Digital Humanities
Forty lessons in nine parts. Starts with variables and integers, ends with iteration tools and functional Python, by way of scraping and SQL. No programming background assumed.