I'd like to use the latex algpseudocode package to add algorithms to my docstrings. I'd also like to be able to define user macros to speed up my maths equation typing in the docstrings.
I'm using napoleon autodoc style with sphinx to generate documentation from my docstrings.