Posts in 'python'

Notebook template

Notes:

  • \(\LaTeX\): It renders correctly from the markdown file. The \(\LaTeX\) within the notebook markdown cells renders the equations, but not the inline math. TODO: fix this
  • When you reference a single cell, you can't say cells[4], you have to write cells[4:5].
  • The numbers in cells[m …

Define Functions Iteratively With Python

An interesting problem came up recently, there was a piece of code absolutely full of the same function calls over and over again, meaning if anything ever need to change, that would have to be changed in over 500 places, not ideal. Thoughts go back to single responsbility, and don't …