[IPython-user] minor annoyance -- 'n' into readline input hist

John Hunter jdhunter at ace.bsd.uchicago.edu
Wed Apr 19 09:01:19 CDT 2006


If I "run" a script which has a syntax error, I get prompted if I want
to enter an editor.  I usually say "n", and then the 'n' is in my
readline input history.  So when I do uparrow to rerun the script, I
get the 'n' and not the run command

In [1]: cat test.py
if 1:
    print 'hi!'
      print 'oops!'
else:
    print 'bye!'



In [2]: run test.py
------------------------------------------------------------
   File "test.py", line 3
     print 'oops!'
     ^
SyntaxError: invalid syntax

WARNING: Failure executing file: <test.py>
Return to editor to correct syntax error? [Y/n]  n

In [3]: n   #<--- UP ARROW

What is the magic config setting to disable the editor input
prompting altogether.

In [4]: IPython.__version__
Out[4]: '0.7.2.svn'

JDH




More information about the IPython-user mailing list