<br>
<div><span class="gmail_quote">On 1/31/06, <b class="gmail_sendername">Fernando Perez</b> <<a href="mailto:Fernando.Perez@colorado.edu">Fernando.Perez@colorado.edu</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Dave wrote:<br>> I still get "Return to editor to correct syntax error? [Y/n] n" messages<br>
> when I have syntax errors since upgrading to 0.7.0. The 0.7.1 version seems<br>> to do the same thing. I added<br>><br>> autoedit_syntax 0<br>><br>> to my startup file (ipythonrc.ini) but still get the message.
<br>><br>> I'm running on WIN XP.<br>><br>> Would love to turn this off since it is not of much help when you have an<br>> external editor already open for the file.<br>><br>> Is there a simple edit I can do to a ipython module to disable this for now?
<br><br>Mmh, that's very strange: the setting is honored for me:<br><br>In [8]: __IP.rc.autoedit_syntax=0<br><br>In [9]: edit<br>IPython will make a temporary file named: /tmp/ipython_edit_rnvW85.py<br>Editing...------------------------------------------------------------
<br> File "/tmp/ipython_edit_rnvW85.py", line 1<br> 12qsda f<br> ^<br>SyntaxError: invalid syntax<br><br>WARNING: Failure executing file: </tmp/ipython_edit_rnvW85.py><br>done. Executing edited code...
<br>Out[9]: '12qsda f\n'<br><br><br>Try typing %config to see your config settings, and check that it's really<br>being picked up as '0'. Also try resetting it at runtime as above, and see if<br>it helps. Basically we need to clarify whether the problem is with the
<br>ipython internals, or whether you are picking up a different config from<br>somewhere.<br><br>Cheers,<br><br>f<br></blockquote></div>
<div><br> </div>
<div>
<div>
<div>Hi Fernando,</div>
<div> </div>
<div>Here's my %config output (excerpt below). This is a handy magic I didn't know about. Actually I was able to find the problem using %config and your suggestions. The autoedit_syntax 0 was not being picked up because a different
ipythonrc.ini was being used than I expected. I seem to have both a .ipython directory and a _ipython directory. I thought .ipython was where the startup files were located. But the %config shows ipythondir set to '_ipython'. So it looks like the autoedit_syntax issue was just my misunderstanding. It seems to be turned off properly now. Thanks for your help.
</div>
<div> </div>
<div>Is this startup files location specific to WIN systems? On unix or OSX it still looks in .ipython in user's dir, correct? I'm assuming I need to delete the whole .ipython dir on WIN XP.</div>
<div> </div>
<div> </div>
<div>-- David</div>
<div> </div>
<div> </div>
<div>In [1]: %config<br>Current configuration structure:<br>{'Version': 0,<br> 'alias': [],<br> 'args': [],<br> 'autocall': 1,<br> 'autoedit_syntax': 1,<br> 'autoindent': 1,<br> 'automagic': 1,<br> 'banner': 1,<br> 'c': '',
<br> 'cache_size': 1000,<br> 'classic': 0,<br> 'color_info': 1,<br> 'colors': 'Linux',<br> 'confirm_exit': 1,<br> 'debug': 0,<br> 'deep_reload': 0,<br> 'editor': 'notepad',<br> 'embedded': False,<br> 'execfile': [],<br> 'execute': [''],
<br> 'gthread': 0,<br> 'help': 0,<br> 'ignore': 0,<br> 'import_all': [],<br> 'import_mod': [],<br> 'import_some': [[]],<br> 'include': [],<br> 'ipythondir': 'C:\\Documents and Settings\\david\\_ipython',<br> </div>
<div>.</div>
<div>.</div>
<div>.</div>
<div> </div><br> </div></div>