First time here? Check out the FAQ!

Ask Your Question
0

What compression use a sws worksheet file?

asked 12 years ago

Pedro gravatar image

(I remember reading about it but could find again.)

Preview: (hide)

3 Answers

Sort by » oldest newest most voted
2

answered 12 years ago

benjaminfjones gravatar image

It's a tar.bz2 file. You can decompress and unpack a worksheet like so:

tar xvjf Interval_Notation.sws

results in a directory called sage_worksheet with contents:

drwxr-xr-x  7 ?  staff   238 Jun 21 10:15 cells
-rw-r--r--  1 ?  staff  6032 Feb 21  2011 worksheet.html
-rw-------  1 ?  staff  6062 Feb 21  2011 worksheet.txt
-rw-r--r--  1 ?  staff   169 Feb 21  2011 worksheet_conf.pickle
Preview: (hide)
link

Comments

Will it *always* have `cells`? I have one that doesn't, and it's a brand-new worksheet, even...

kcrisman gravatar imagekcrisman ( 12 years ago )

It may also have a `data` directory, if one has uploaded data...

kcrisman gravatar imagekcrisman ( 12 years ago )
1

answered 12 years ago

kcrisman gravatar image

It's a bzip2'ed file - apparently a tar.bz2 file, to be precise. See http://ask.sagemath.org/question/961/large-worksheet-upload-to-notebook, among others.

Preview: (hide)
link
1

answered 12 years ago

Jason Grout gravatar image

You can also use the unix file command to investigate if you don't know.

% file zemek.sws 
zemek.sws: bzip2 compressed data, block size = 900k
Preview: (hide)
link

Comments

Thanks. 'file' is new to me and a nice tool. A long term idea is to pre-build worksheets, a different one for each user to upload each.

Pedro gravatar imagePedro ( 12 years ago )

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 12 years ago

Seen: 965 times

Last updated: Jun 21 '12