pyfmt A Jupyter Notebook magic to embed syntax highlighted parts of python files. Usage usage: %pyfmt [<selection>[,...]] <file> Selection Syntax type syntax region r<region-name> lines l<start>:<end> example cell import pyfmt %pyfmt rmyregion code.py