/pfm

Python for Mathematics: A book aimed at undergraduate mathematicians learning python

Primary LanguageTeXMIT LicenseMIT

deploy-book

Python for mathematics

Development

The book is written in files found in book/ in the MySt markdown format.

To install development dependencies:

pip install -r requirements-dev.txt

Note that as of the time of writing this: python version needs to be <=3.10.

To check the format of the python code in the markdown files:

inv stylecheck

To check the spelling:

inv spellcheck

To check the prose:

inv prosecheck

To generate back up ipynb versions of the notebooks:

inv backupbook

To test the notebooks:

inv testnbs

The main purpose of backing up to ipynb and then testing is so that the CI can confirm the results written in the book are what would be obtained when using updated libraries.

To generate the book to the book directory:

inv build