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