# 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?

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?

add a comment

2

First, 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.

Asked: **
2017-08-18 18:01:05 -0600
**

Seen: **179 times**

Last updated: **Aug 19 '17**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.