First time here? Check out the FAQ!

Ask Your Question
0

What is the difference between .sage and .sagesw?

asked 7 years ago

standardtrickyness gravatar image

updated 7 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 7 years ago

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.

Preview: (hide)
link

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

Stats

Asked: 7 years ago

Seen: 659 times

Last updated: Aug 19 '17