ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 19 Aug 2017 10:37:22 -0500What is the difference between .sage and .sagesw?http://ask.sagemath.org/question/38574/what-is-the-difference-between-sage-and-sagesw/What is the difference between .sage and .sagesw?
I've found that load does not work well with .sagesw why is that?Fri, 18 Aug 2017 18:01:05 -0500http://ask.sagemath.org/question/38574/what-is-the-difference-between-sage-and-sagesw/Answer by kcrisman for <p>What is the difference between .sage and .sagesw?</p>
<p>I've found that load does not work well with .sagesw why is that?</p>
http://ask.sagemath.org/question/38574/what-is-the-difference-between-sage-and-sagesw/?answer=38584#post-id-38584First, note that the endings are `.sage` and `.sagews`. The first is just a text file written in the Sage language (i.e. Python + syntactic sugar + Sage commands), whereas the second is a file specifically for SageMathCloud/CoCalc use only. (There is also a `.sws` format which is from the old sagenb notebook.)
So `load` with `.sage` is using it exactly as intended - for instance, you could define a new function `my_func` in that file, and then loading would make `my_func` available for use in your session. But `.sagews` is a "Sage worksheet" in the CoCalc environment, and it doesn't make sense to "load" a whole worksheet in that sense, though one could presumably convert it to a file that could be loaded.Sat, 19 Aug 2017 10:37:22 -0500http://ask.sagemath.org/question/38574/what-is-the-difference-between-sage-and-sagesw/?answer=38584#post-id-38584