store_history=False default for run_cell #878

merged 3 commits into from Oct 15, 2011


None yet

2 participants


We should only call run_cell with store_history=True as part of the main user interaction loop (and in the test suite), so this makes the default False.

I've also fixed #865 (following @minrk's suggestion). That meant the tests for %cpaste had to be changed, because errors from pasted code are caught before they reach the test code. We now check that the traceback is printed, although that's a more brittle check.

takluyver added some commits Oct 14, 2011
@takluyver takluyver Change run_cell to not store history by default. 3ac262c
@takluyver takluyver Use run_cell for %paste, instead of plain exec.
Closes gh-865, but introduces test failures for %cpaste
@takluyver takluyver Fix tests for cpaste which no longer get error raised to them.
Less elegant than before, because we now look for the traceback being printed.
@fperez fperez merged commit cdfc2e6 into ipython:master Oct 15, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment