Exec lines in config should not contribute to line numbering or history #125

Closed
wackywendell opened this Issue May 29, 2010 · 1 comment

Projects

None yet

3 participants

@wackywendell

If you set get_config().Global.exec_lines and/or get_config().Global.exec_file in your config file, it upsets the line numbering. When you start up, it looks something like this:

$ ipython
IPython 0.11.alpha1.git running Python 2.6.5
[~/ipython]|10> 

Notice that the first line is numbered 10 - that's confusing, and seems to me should not be happening. It didn't in Python 0.9, did it?

It is, however, consistent - input lines appear in the In list, and there is no output, so nothing appears in the Out dict.

@fperez
IPython member

Note that this will be taken care of by #363 when merged; thanks for the report!

@minrk minrk added a commit that closed this issue Apr 12, 2011
@minrk minrk run_cell(exec_lines) now called with 'store_history=False'
This prevents config file defined exec_lines from showing up
in the history, and results in input counter always starting at 1

closes gh-125
closes gh-363
74721c4
@minrk minrk closed this in 74721c4 Apr 12, 2011
@minrk minrk referenced this issue Apr 12, 2011
Closed

Issue 125 #363

@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
@minrk minrk run_cell(exec_lines) now called with 'store_history=False'
This prevents config file defined exec_lines from showing up
in the history, and results in input counter always starting at 1

closes gh-125
closes gh-363
1471f6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment