Ask Your Question

What is the difference between .sage and .sagesw?

asked 2017-08-19 01:01:05 +0200

standardtrickyness gravatar image

updated 2017-08-23 14:01:36 +0200

FrédéricC gravatar image

What is the difference between .sage and .sagesw?

I've found that load does not work well with .sagesw why is that?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-08-19 17:37:22 +0200

kcrisman gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-08-19 01:01:05 +0200

Seen: 536 times

Last updated: Aug 19 '17