Ask Your Question

alexr's profile - activity

2016-04-27 20:12:39 +0200 received badge  Popular Question (source)
2016-04-27 20:12:39 +0200 received badge  Notable Question (source)
2015-03-13 13:37:44 +0200 received badge  Student (source)
2015-03-12 23:24:24 +0200 received badge  Editor (source)
2015-03-12 21:18:21 +0200 asked a question loading a worksheet

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.