CLI tools

Some support scripts for maintaining the book

A little script to correct chapter indices to base 1:


source

rename

def rename(
    dir:str, # dir in which to rename files
    suffix:str='.ipynb', # suffix of files to change
):

Rename notebooks to base 1 for chapters.

A function to read a notebook and fix its colab links:


source