Very basic POC: https://github.com/hughperkins/pytorch-prettify/blob/master/prettify_errors.ipynb 2
concept:

paste the stack trace into the jupytr notebook
press ctrl-enter, and see some somewhat cleaned up stack trace