1 | initial version |
See also this other question: https://ask.sagemath.org/question/50358/loading-a-file-unter-windows/ I think you need to write it this way:
sage: load("/Users/Martin/Desktop/example.sage")
You may also like
sage: %attach /Users/Martin/Desktop/example.sage
which reloads the file automatically on save.
2 | No.2 Revision |
See also this other question: https://ask.sagemath.org/question/50358/loading-a-file-unter-windows/ I think you need to write it this way:
sage: load("/Users/Martin/Desktop/example.sage")
or
sage: load("./Desktop/example.sage")
sage: %load ./Desktop/example.sage # alternative syntax
sage: %runfile ./Desktop/example.sage # alternative syntax
You may also like
sage: attach("./Desktop/example.sage")
sage: %attach /Users/Martin/Desktop/example.sage
./Desktop/example.sage # alternative syntax
which reloads the file automatically on save.
3 | No.3 Revision |
See also this other question: https://ask.sagemath.org/question/50358/loading-a-file-unter-windows/ I think you need to write it this way:
sage: load("/Users/Martin/Desktop/example.sage")
or with a relative path:
sage: load("./Desktop/example.sage")
sage: %load ./Desktop/example.sage # alternative syntax
sage: %runfile ./Desktop/example.sage # alternative syntax
You may also like
sage: attach("./Desktop/example.sage")
sage: %attach ./Desktop/example.sage # alternative syntax
which reloads the file automatically on save.