ipython/ipython — Issue #1384: Store contents of %paste and %cpaste blocks in terminal history
Author: drewfrank
Created: 2012-02-07 00:12:37+00:00
State: open

Current behavior of the IPython terminal frontend is to store the string "%paste" or "%cpaste" in the history. It would be nice if there were an option to have the history instead store the actual lines that were pasted.

This feature would be convenient for re-executing commands in interactive sessions. Additionally, the history would be a complete summary of the interactive session, whereas currently it is missing important information (what was pasted).