Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I retrieve sage worksheets from old hard drive

Recently, my computer (a Macbook Pro) stopped working suddenly. I have now replaced it with a newer Macbook Pro, and I would like to get my sage worksheets from my previous computer onto my new one. The drive on the old computer is fine and I have access to everything on it, but I do not know where the sage worksheets are stored. According to this: they should be in the directory ~/.sage/sage_notebook.sagenb/home/. I have copied the .sage directory from my old hard drive to my new one. Inside there is indeed a directory called sage_notebook.sagenb and inside that there is a directory called home. Inside home is a folder named __store__, and then three shortcuts (I think they are shortcuts, they are little folders with arrows in the bottom left corner) named admin, guest, and pub. Both guest and pub are empty. The contents of __store__ are mostly inscrutable. There are essentially three possible paths one can take:

/__store__/0/08/084/084e/guest/ which is empty

/__store__/3/3a/3a2/3a21/pub/ which is empty

/__store__/2/21/212/2123/admin/ which is filled with folders 0 through 34 and a file called history.pickle

Inside each of the folders labeled 0 through 34 are two folders named cells and data and two files named worksheet_conf.pickle and worksheet.html. The data and cells folders are sometimes empty but other times data contains some of my .sobj files and cells contains one or many folders labelled by seemingly random numbers. Inside these folders are files of various types, I think I have seen .sobj, .png, and .txt files so far.

What do I do so that when I run notebook() in a sage terminal and it opens up a browser window with all of my worksheets listed I will be able to see the worksheets that I had on my previous computer?