ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 08 Nov 2012 20:28:35 +0100load notebook fileshttps://ask.sagemath.org/question/9513/load-notebook-files/I have Sage installed and running OK. I am new to Sage and have two questions on using third party notebooks/code.
I have a Sage notebook file called "sage_notebook.tar.bz2" that is included as part of a series of lectures I am stuying. This archive contains a single directory called "sage_notebook"
1) What do I need to do to read this into Sage?
I also have some "worksheet" files.
2) What do I need to do to read a worksheet file into Sage?
Thank you for getting me started?
Thu, 08 Nov 2012 11:46:07 +0100https://ask.sagemath.org/question/9513/load-notebook-files/Answer by kcrisman for <p>I have Sage installed and running OK. I am new to Sage and have two questions on using third party notebooks/code.</p>
<p>I have a Sage notebook file called "sage_notebook.tar.bz2" that is included as part of a series of lectures I am stuying. This archive contains a single directory called "sage_notebook" </p>
<p>1) What do I need to do to read this into Sage? </p>
<p>I also have some "worksheet" files. </p>
<p>2) What do I need to do to read a worksheet file into Sage?</p>
<p>Thank you for getting me started?</p>
https://ask.sagemath.org/question/9513/load-notebook-files/?answer=14242#post-id-14242This is probably a *really* old version of this. Modern notebook directories look like `sage_notebook.sagenb`. May we ask what the lectures are? It's possible there is an updated version. In any case, if you upload the worksheet (`.sws`) files as Dirk explains, this directory will be recreated in your own `.sage` directory (usually located in your `$HOME` directory).
Edit: In personal correspondence, you verified that this is from http://modular.math.washington.edu/edu/2007/spring/bsd/sage_notebook.tar.bz2 from the website
http://modular.math.washington.edu/edu/2007/spring/bsd/; this is indeed from an archaic version of Sage. You could conceivably compress each of the directories in the directory `worksheets`into a .bz2 file and then rename it as `.sws` and try to upload it, but I suspect that won't work, given that the internals are different.
In this particular case, I would write a script to look at the directory `pub` and extract the `worksheet.txt` file in each folder in there to be uploaded to your Sage notebook; it's not perfect but I just tried it and they do work, though it looks like some of them may be incomplete in various ways. In truth, you may want to see if there is a more recent version of some of William's stuff on the BSD conjecture, which there likely is! Good luck.Thu, 08 Nov 2012 20:28:35 +0100https://ask.sagemath.org/question/9513/load-notebook-files/?answer=14242#post-id-14242Answer by Dirk Danckaert for <p>I have Sage installed and running OK. I am new to Sage and have two questions on using third party notebooks/code.</p>
<p>I have a Sage notebook file called "sage_notebook.tar.bz2" that is included as part of a series of lectures I am stuying. This archive contains a single directory called "sage_notebook" </p>
<p>1) What do I need to do to read this into Sage? </p>
<p>I also have some "worksheet" files. </p>
<p>2) What do I need to do to read a worksheet file into Sage?</p>
<p>Thank you for getting me started?</p>
https://ask.sagemath.org/question/9513/load-notebook-files/?answer=14233#post-id-14233The worksheet file is easy. Log in to the notebook server and click the link that says ***upload***. You can browse your local computer for .sws files which are then uploaded to the server. From then on you can edit them as any other worksheet.
I'm not sure about the sage_notebook file. As I understand it, the notebook file contains everything, from the list of known users up to each worksheet of those users. I doubt if you would even want to read it in. Thu, 08 Nov 2012 16:45:49 +0100https://ask.sagemath.org/question/9513/load-notebook-files/?answer=14233#post-id-14233