As of now (3.14 beta), there's no internal mechanism in CPython to trigger any callback after a line executed.