The code from the book is in scratch To load a python package: from book.scratch.linear_algebra import dot