It is painful to imagine how these fantastic works will be not be read by humans in future, as AI would digest all this and provide just-in-time code for humans.
The kind of people who read books like this will keep reading them no matter what AI does. The kind of people who won't are already using code written and packaged as convenient libraries by others.
You are mistaken if you think the code is the point (it is not); It is the Mathematics which is important. AI tools can help me in my studies/work but the understanding still has to happen in my own head.
Hannah Fry said that learning math feels like gaining a 6th sense. That’s why I continue to study it. I feel it. It’s fun to experience the world in more ways.
Since the dawn of the current "AI" I've continued to buy and read books at the same pace. Likewise downloading interesting human-created PDFs. I know I'm not the only human who takes zero interest in the output of word-sausage extruders.