When to choose which syntax to install your own Python package
read moreEnhance matplotlib and LaTeX
Plotting for LaTeX documents with matplotlib
To use $\LaTeX$ efficiently you should use raw-strings (
r"$\LaTeX^2$"
) otherwise you need to escape the backslashes with backslashes. To use $\LaTeX$ and format-strings you need to escape all curly braces with curly braces, e. g.r"{} $\textrm{{nah}}$".format("escaping")
.Standard official …
read morePyScaffold, my boilerplate of choice
Capture stdout e. g. for debugging
Capture the standard out for debugging or for wrappers
read moreTricks with global and local variables
Use functions where you have the name as a string and create variables where you also only have the name as a string
read morePython 2 vs. Python 3
Why to use Python 3 and how to convert your code
read moreFitting in Python
How to fit curves to data in Python
read morePlot dictionaries