Autocompletion of filenames in Sage notebook

i like this post (click again to cancel)
1
i dont like this post (click again to cancel)

I'm working within a Sage notebook (not a terminal). The tab autocompletion for commands is lovely, but is there something similar for filenames and folders when you're loading/attaching?

For example, if I want to attach the file myscripts/folder123/example456.sage (assuming that 'myscripts' is in my load_attach_path), I would type:

attach folder123/example456.sage

If I were to type only a portion of that path and hit tab, it doesn't autocomplete or give completions for the folder or filename; it either does nothing, indents, or (e.g., after the "e" in "example123") brings up a list of commands, without listing any filenames. Is there anything I can do to change this?

Disclaimer: I'm very new to all this, and pretty Unix-incompetent.

asked Aug 23 '11

jdc gravatar image jdc
215 1 3 14
http://jconecker.wordpres...
i like this answer (click again to cancel)
1
i dont like this answer (click again to cancel)

This is a fair question, and autocompletion of paths does work from the sage command line (because of ipython, I think). Unfortunately, no, there is no autocompletion in notebook cells.

link

posted Aug 23 '11

niles gravatar image niles
3429 5 41 94
http://nilesjohnson.net/
Belated thanks for your answer, Niles. So, is autocompletion in notebooks a cut-and-dried "No, and there is no fix, and there never will be"? Might not someone more clever than me find a way to implement this, or is there some unavoidable obstruction? jdc (Aug 29 '11)
That, I'm afraid, I do not know. I wouldn't know how to do it, and I don't know if anyone is working in that direction. It probably doesn't require someone particularly clever, just someone who decides to make it happen :) niles (Aug 30 '11)
Thanks again! jdc (Aug 31 '11)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: Aug 23 '11

Seen: 82 times

Last updated: Aug 23 '11

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.