Python version of MATLAB exercises for CME 100 at Stanford University.
Access it through our Jupyter Book!
Here's what Enze's convoluted process entails (if you don't like it, feel free to use your own):
- Clone the repo and ask Enze or Vadim for the solution Python notebooks.
- Move the solution notebooks into their proper folders (workbook or tutorials).
Files ending in
_solu.ipynb
will be ignored by git. - Anytime you modify the solutions, update the
_blank
notebooks (what is actually compiled in the Jupyter Book) by running from above the root folder:python cme100-python/assets/make_blank_nb.py
. - Run a full build of the Jupyter Book from above the root folder:
jb build cme100-python --all
. - Enter the root folder and publish to GitHub pages:
ghp-import -n -p -f _build/html
. - Don't forget to commit+push changes as needed to keep the Github up to date (but this doesn't change what students see).
- If you want to compile the solution notebooks as PDFs, use the
convert_pdf.py
file:
python convert_pdf.py {path_to_solution_notebooks} -n {merged_pdf_name.pdf}