ParentFull threadvishvananda·I'm a big fan of bpython[1] for this. F10 copies current session to clipboard, F7 opens it in an external editor, and Ctrl-s saves it to a file.[1]: https://github.com/bpython/bpythonView on HN