skip to navigation skip to content
Thu 20 May, Thu 27 May 2021
11:00 - 12:00

Venue: Cambridge Digital Humanities Online

Provided by: Cambridge Digital Humanities


Booking

Bookings cannot be made on this event (Event is not taking bookings).


Other dates:

No more events



Booking / availability

Methods Workshop: Best Practices in Coding for Digital Humanities
New

Thu 20 May, Thu 27 May 2021

Description

Methods Workshop: Best Practices in Coding for Digital Humanities

Mary Chester-Kadwell (CDH Methods Fellow)

Please note this workshop has limited spaces and an application process in place. Application forms should be completed by Tuesday, 11 May 2021. Successful applicants will be notified by end-of-day Wednesday, 12 May 2021.

This course introduces best practices and techniques to help you better manage your code and data, and develop your project into a usable, sustainable, and reproducible workflow for research.

Developing your coding practice is an ongoing process throughout your career. This intermediate course is aimed at students and staff who use coding in research, or plan on starting such a project soon. We present an introduction to a range of best practices and techniques to help you better manage your code and data, and develop your project into a usable, sustainable, and reproducible workflow. All the examples and exercises will be in Python.

If you are interested in attending this course, please fill in the application form. Places will be prioritised for students and staff in the schools of Arts & Humanities, Humanities & Social Sciences, libraries and museums. If you study or work in a STEM department and use humanities or social sciences approaches you are also welcome to apply.

If you are interested in attending this course, please fill in the application form.

Target audience

Places will be prioritised for students and staff in the schools of Arts & Humanities, Humanities & Social Sciences, libraries and museums. If you study or work in a STEM department and use humanities or social sciences approaches you are also welcome to apply.

Prerequisites

Existing knowledge of Python is required, including a working knowledge of Python syntax, variables, conditions, loops, functions and imports. You should be using Python in research in some way, and have some existing code to work with, or plan to start such a project soon. Basic knowledge of the command-line would be of benefit, but preparatory material will be available on this topic.

If you are unsure whether your coding experience is sufficient, please apply anyway and we can talk about it together.

Sessions

Number of sessions: 2

# Date Time Venue Trainer
1 Thu 20 May 2021   11:00 - 12:00 11:00 - 12:00 Cambridge Digital Humanities Online Mary Chester-Kadwell
2 Thu 27 May 2021   11:00 - 12:00 11:00 - 12:00 Cambridge Digital Humanities Online Mary Chester-Kadwell
Objectives

We will cover:

  • Code as a research artefact: experimental vs reusable code; questions of publishing code and licensing; principles of openness, reproducibility, sustainability.
  • Project management:
    • Project structure: use a widely-used template to organise your project;
    • Version control: track the history of code and data to document progress, roll back and never lose your work;
    • Dependencies: record the libraries your code relies on so you can reliably run your code;
    • Virtual environments: isolate your code from the rest of your system to avoid conflicts with different versions of dependencies;
    • Documentation and self-documenting code: various ways to document your code and data for your future self and others.
  • Refactoring (re-organising) code for re-use and automation:
    • Transform long functions and Jupyter notebooks into small functions;
    • Turn scripts into command-line programs you can automate;
    • Add a GUI to programs (i.e. windows with buttons) to make your code easier and more pleasant to use.
  • Next steps: resources and directions.
Aims

By the end of this course you should be able to:

  • Understand the role code plays in research, and discuss whether it could or should be open, reproducible and sustainable.
  • Set up a new project, or re-organise an existing project, using best practices to structure, version, run and document code and data.
  • Do a basic re-organisation of existing code to make it easier to automate or more pleasant to use.
Format

This course takes a ‘flipped classroom’ approach whereby much of the learning takes place self-paced in your own time. Preparatory material is released in the week before the course takes place. The course starts with a 1-hour remote video session to introduce the topics and materials, and ends with another 1-hour remote video session to discuss progress and next steps. Self-paced materials are provided to work through in between the sessions. A chat forum will be used on Moodle for asking/answering questions during the week.

Please make sure you can plan time in your schedule to complete the preparatory and self-paced materials in order to get the most out of the course. Time estimates for working through these materials are as follows:

  • Preparatory materials (total: 0-3 hours):
    • Optional: Required installations/set-up: 1 hour
    • Optional: Basic introduction to the command-line: 1-2 hours
  • Self-paced materials (total: 3-6 hours)
    • Version control exercise: 1-2 hours
    • Refactoring exercise: 1-2 hours
    • Choice of:
      • Command-line exercise: 1-2 hours
      • GUI exercise: 1-2 hours

The amount of time you may wish to spend on the self-paced materials depends on your pre-existing experience and own personal goals.

System requirements

You will need a laptop/desktop to join the sessions and follow the self-paced materials. You will need installed: Python 3.7 or above (either vanilla or Anaconda), a text editor or IDE of your choice, and git version control. Instructions will be provided. You should also sign up for a GitHub account.

Theme
CDH Methods Workshop

Booking / availability