During operating hours, building access is available to GW students, faculty, and staff who have completed all of the steps outlined on GW's Onward website. No one will be allowed to sign in without a physical GWorld card or enter the library if their GWorld card tap is denied. Library access is not available for alumni or visitors. Masks are required inside all library buildings.

Getting the Bugs Out: Troubleshooting Code in Python

Warning message

This event has already taken place, please don’t try to go to it!
Getting the Bugs Out: Troubleshooting Code in Python

Have you ever borrowed code from a Medium blog post or a stack coverflow thread only to find that it doesn't work as advertised? Spent hours trying to figure out an error message? You might agree that debugging can be one of the most frustrating parts of programming. This intermediate-level workshop will introduce techniques for diagnosing errors in Python code and will cover some best practices that can make your code more robust, easier to maintain, and more reproducible.

Attendees will walk through examples of "buggy" Python code, understanding how to interpret errors and identify their causes; learn how to catch and handle errors so as to make code more robust; and explore how sound architecture and good documentation can make code easier to reason about.

It will be helpful to have had prior exposure to Python, such as through the "Introduction to Python" workshop or Python Camp. No installation of Python is needed.

This workshop is part of the Using Programming and Code for Research workshop series for for anyone who wants to get started or learn more about use programming languages like Python, R, or other applications. These tools can help you to collect, manipulate, clean, analyze, and visualize research data or automate many repetitive tasks. If you need personalized assistance with a data analysis, programming, or coding project, consider booking a consultation with one of our librarian-experts. Learn more about our services for programming and coding and for working with data.

All sessions are free to GW students, faculty, staff, and alumni. GW has an institutional commitment to ensuring that all of our programs and events are accessible for all individuals. If you require any accommodations to participate in this event, please contact libraryevents@gwu.edu at least 72 business hours (3 business days) prior to the event.