On 3/12/06, <b class="gmail_sendername">Fernando Perez</b> <<a href="mailto:Fernando.Perez@colorado.edu">Fernando.Perez@colorado.edu</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
John Salerno wrote:<br>> Hi everyone. I just started using IPython and I have two questions. The<br>> first concerns the dir alias. Every time I start IPython, I get a message at<br>> the top of the console window that says "Deleting alias <dir>, it's a Python
<br>> keyword or built-in." Is this normal? Is there a way to prevent this from<br>> happening, or remove it altogether?<br><br>I'll leave it to our windows experts to help with this one, since I don't use<br>win32 at all.
</blockquote><div><br>My guess as to what's happening here is that IPython is creating an alias called 'dir' since dir is a DOS prompt command in Windows, but when IPython starts up, it automatically deletes the alias because it conflicts with the built-in Python function of the same name. So it seems what I need to do is somehow change the 'dir' alias (to 'dr', perhaps) so this conflict doesn't occur. I assume it must be done in an external file, because once IPython starts, I won't have a change to edit the aliases before dir is deleted.
<br><br>So hopefully someone can tell me how to do this, and which file(s) to edit. I hope there aren't too many files that I would have to change.<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> Second concerns using %edit to open an external editor. After a little<br>> trouble getting it to work with Ultra-Edit, I realized that I needed to put<br>> quotes around the parts of the path that contained spaces:
<br>><br>> C:\"Program Files"\"IDM Computer Solutions"\Ultra-Edit\uedit32.exe<br>><br>> This now opens UE, but it also tries to open files with names equal to the<br>> values after each space,
i.e. Files, Computer, and Solutions. Is there a way<br>> to fix this?<br><br>What happens if you try instead to set the editor variable to:<br><br>"C:\Program Files\IDM Computer Solutions\Ultra-Edit\uedit32.exe"
<br><br>with a single set of quotes around the whole thing? I think that should work.</blockquote><div><br>Yes, that did the trick. Thank you! <br></div><br></div><br>