Tags: patch I find this pretty much essential when running "notebooks" and the like. I think "C-c C-n" would be a reasonable keybinding, but since I can't find any precedent, I didn't include a keybinding. Also, in case the `string-trim' call looks hacky, I should add that the relationship between the shell buffer and process name is pretty much hardcoded in python.el, so there doesn't seem to be anything more reasonable to do that wouldn't require some major refactoring.