My code is, for better or worse, rife with single letter variables (it\'s physics stuff, so those letters are meaningful), as well as NumPy\'s, which I\'m often interacting
That is not the direct answer to your question, but it may help you: PuDB is a console-based visual interface for PDB which separates commands from variable manipulation by design.