loading a worksheet

asked 2015-03-12 15:18:21 -0600

alexr gravatar image

updated 2015-05-22 13:50:11 -0600

FrédéricC gravatar image

I have a worksheet that stores a number of functions that I want to use. I'm having trouble importing it on the sage math cloud. I followed this guide. I'm still having trouble. My file is "NPS_lib.sagews."

Anytime I try to do something like:

os.path.abspath('.') %load /projects/1fb765dd-blah-blah-blah/NPS_lib.sagews

I get the following error:

IOError: [Errno 2] No such file or directory: u'/projects/1fb765dd-blah-blah-blah/NPS_library.sagews.sobj'

I've tried using load('/path/file') format as well and still get the same error. In particular it always seems to be appending "sobj" to the end of my string, which doesn't look right. What is going on here?

In the guide link, it looks like changing the extension to .sage makes it work however if I try this it messes up some of the code, particularly comments.

edit retag flag offensive close merge delete