Labs

Programming lab sessions will help you understand the basics of python and pygame.

To setup the environment, you can use pyenv or conda (recommended). Then, install dependencies:

pip install -r requirements.txt

Download the requirements file here.


Lab 1: Intro to Observable and D3

Lab 2: Intro to Vegalite

Lab 3: D3 example: iPCA

Lab 4: D3 example: Squares

Lab 5: Model Understanding with notebookJS

Lab 6: White-box Model Understanding

Lab 7: Black-box Model Understanding

Lab 8: Dimensional Reduction

Lab 9: Topological Data Analysis

Notes

If you are new to Javascript, I would recommend going over the Javascript Basics notebook this week. If you are new to D3, I recommend taking a look at the Data Transformation, SVG and D3 Basics, and Color guidelines.

Don’t worry about absorbing all of these immediately! We will dive into more complex and interactive visualizations together as the semester continues, but this is a useful reference if you want to create a visualization but aren’t sure where to start.