Week 10 Videos

Adding a title in Altair (4:27)

Some options for customizing the display of charts in Altair.

f-strings (4:39)

The modern way to include variables within strings in Python.

DRY (Don’t Repeat Yourself) (4:47)

An important piece of coding style that I’ve neglected to emphasize so far in Math 10. If you find yourself copy-pasting some portion of code repeatedly, that is almost surely a sign that you should be using a different strategy. Here we use the DRY principle to display 30 variants of the same Altair chart.

Alternatives to Deepnote (5:00)

Deepnote has worked well in Math 10, but it’s important to be aware of some of the more widely used alternatives, especially: