Have you considered adding an advanced run option that doesn't obliterate the code in the REPL?
In particular, it would be great update a function or class select it and press a button to run the updated version in the REPL so that you wouldn't have to copy and paste it there manually.