I would love to see things flipped around: Teach calculus as code, and work in the concepts after. This looks like a conventional approach with code tacked on after. What I see here: concept -> math notation -> code. I'd go: code -> concept -> math notation.
Why would that be better?
There are nice APL- and J-based math books with this approach. APL's inventor's main goal was improving mathematics instruction.