Ask Your Question
1

Autocompletion of filenames in Sage notebook

asked 2011-08-23 11:50:32 +0100

jdc gravatar image

updated 2017-01-08 12:14:04 +0100

FrédéricC gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2011-08-23 13:32:32 +0100

niles gravatar image

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.

edit flag offensive delete link more

Comments

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 gravatar imagejdc ( 2011-08-29 14:48:11 +0100 )edit

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 gravatar imageniles ( 2011-08-30 09:58:23 +0100 )edit

Thanks again!

jdc gravatar imagejdc ( 2011-08-31 10:31:39 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-08-23 11:50:32 +0100

Seen: 483 times

Last updated: Aug 23 '11