Thanks for your patience during our recent outage at scalar.usc.edu. While Scalar content is loading normally now, saving is still slow, and Scalar's 'additional metadata' features have been disabled, which may interfere with features like timelines and maps that depend on metadata. This also means that saving a page or media item will remove its additional metadata. If this occurs, you can use the 'All versions' link at the bottom of the page to restore the earlier version. We are continuing to troubleshoot, and will provide further updates as needed. Note that this only affects Scalar projects at scalar.usc.edu, and not those hosted elsewhere.
12019-05-16T15:36:48-07:00Intro to Python17Thursday Morning Session, 90 minutesplain2019-05-30T04:16:46-07:00
Lesson Overview
Python is a general-purpose programming language that is suitable for a wide variety of core tasks in the digital humanities. Learning the fundamentals of Python is a gateway to analyzing data, creating visualizations, composing interactive websites, scraping the internet, and engaging in distant reading of texts. This session will introduce participants to writing code in Python using Jupyter Notebooks, an open source web application used to create and share documents that contain live code, equations, visualizations, and text. We will begin with a basic overview of programming languages in general, talk about Python and its use in digital humanities, and look at the following two examples of humanities projects using Python: Ritvik Kharkar's "Making 3 Easy Maps with Python" and Nick Monfort's "Taroko Gorge" poem. *NOTE: Also view Ritvik Kharkar's "Quick and Dirty Data Gathering with Python" to learn more about Kharkar's data gathering technique for the above three maps.
We will then get into an overview of Anaconda Navigator and Jupyter Notebooks, followed by hands-on exercises of coding in Python. The goal for this intro session is to learn the basic Python commands that could then be used and applied to participants' own future research and projects.
By the end of this session, participants will know fundamental Python commands and have an understanding of how Python can be used in digital humanities research.
Download Requirement
Anaconda Distribution 3.7: https://www.anaconda.com/distribution/ (make sure to install the proper version for your operating system, i.e. Windows or MacOS)
Resources for Keywords, Functions, Types, and Statements in Python