On Dec 12, 2014, at 10:19 , Bob Gman wrote:

> It seems too simple to be a problem for me, but:
> 
> sage: attach "/home/bgman/Documents/Python/prob2_1_29.sage"
>  File "<ipython-input-9-9a83b54672c9>", line 1
>    attach "/home/bgman/Documents/Python/prob2_1_29.sage"
> 
> and
> 
> sage: load "/home/bgman/Documents/Python/prob2_1_29.sage"
>  File "<ipython-input-8-1ab93d7e50c7>", line 1
>    load "/home/bgman/Documents/Python/prob2_1_29.sage"
> 
> both of these result in a SyntaxError: invalid syntax message.
> 
> Any ideas what I'm doing wrong?

A couple of things to help us and you:
1. What version of Sage, OS; and what hardware?
2. Sage provides some rudimentary help using TAB, "?" and "??".  The results 
for the latter two can sometimes be perplexing, but the idea is that
   TAB: type the first part of a command, or a word that you think will be one, 
and then hit TAB (this is for the terminal version; something similar works for 
the notebook).  You get a list of commands that match the string you typed (as 
a leading substring).  If you type a full command name followed by "." and then 
TAB, you get "subcommands" associated to that command/name.
   "?", "??" preceding or following a command or name (and then RETURN) will 
show you documentation for the command from the file where it is defined.  In 
the second instance, you also get the code.  In either case, you get the path 
to the file where the code lives.

The perplexing part will become obvious as you use this.

In answer to your questions, "?attach" will explain what the problem is.

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
-----------
Question 43:
What if the hokey pokey
really *is* what it’s all about?
--

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to