Machinery to replace the current cell instead of adding a new one
Replace cell with %load magic instead of adding cell
Clear output after replacing cell contents
Document replace field in set_next_input payload
Merge pull request #6994 from takluyver/set-next-cell-replace

Proposal: API to replace current cell