John M. Stewart: Python for Scientists
Second edition, Cambridge University Press 2016/7
This website, which is free from copyright restrictions, gives access to three files.
Code samples includes most of the code snippets, which are 4 or more lines long.
They are organized by the section in the book in which they occur.
-
They are available in Jupyter notebook form, perhaps the most useful, at
code.txt .
You will need to relabel this file to "code.ipynb".
-
They are available as a PDF file from
code.pdf .
-
They are available as a HTML file from
code.html .