Ask Your Question
0

Running natively in Windows, can a SageMath 8.0 Jupyter Notebook access "legacy" .sws worksheets

asked 2017-11-10 00:00:34 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

As a Windows 10 user, I recently upgraded from SageMath 6.8 running in VirtualBox to SageMath 8.0 running natively without VirtualBox. I successfully uploaded my "library" of hundreds of .sws worksheets into a SageMath 8.0 "legacy" (SageNB) Notebook (*). But my question is as follows:

Is there a way to upload my "library" of .sws worksheets into a Jupyter Notebook in SageMath 8.0 running natively in Windows?

(*) I noticed that on my system, the Windows 10 shortcut produced upon installing SageMath 8.0 had the following target for opening a Jupyter Notebook: "C:\Program Files\SageMath 8.0\runtime\bin\mintty.exe" -t 'SageMath 8.0 Notebook Server' -i sagemath.ico /bin/bash --login -c '/opt/sagemath-8.0/sage --notebook jupyter'

By simply replacing that last word jupyter with sagenb (and renaming the shortcut), I obtained a shortcut that opens a "legacy" SageMath Notebook (SageNB). This, rather than a Jupyter Notebook, is the only way I've so far managed continue using my "library".

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-11-10 07:09:32 -0600

eric_g gravatar image

You should replace the last word of the shortcut command by export (instead of jupyer or sagenb). Then the notebook will open in the converter mode sws --> ipynb (Jupyter).

Actually, export is the default value for the option --notebook of the sage command.

edit flag offensive delete link more

Comments

Thanks for your answer. When I make the change you suggest, the shortcut opens a page that says "Convert old notebooks to Jupyter ... Click on any of the notebooks below to convert it to a new Jupyter notebook and open it in Jupyter: ...". ---Unfortunately, the list of notebooks to be converted is empty.

What should I do to make this page recognize & convert my .sws files?

NB: My collection of .sws files currently exists in two forms: (1) a .zip file that I downloaded from a SageMath 6.8 Notebook, and (2) the files resulting from uploading said .zip file into a SageMath 8.0 Notebook (SageNB). (I'm unsure where these latter files are located, but I suspect they're in the many subfolders of C:\Users\<myusername>\.sagemath-8.0\sage_notebook.sagenb\home\__store__

res0001 gravatar imageres0001 ( 2017-11-10 22:55:35 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2017-11-10 00:00:34 -0600

Seen: 50 times

Last updated: Nov 10