Ask Your Question

how to convert .sws files of old legacy notebook to .ipynb format

asked 2020-08-16 03:34:14 -0600

sagelearner gravatar image

I recently switched to SageMath 9.1. I am having problem to upload my old .swsfiles in the new jupyter norebook. Any help will be appreciated. I am new to linux

edit retag flag offensive close merge delete


1 answer

Sort by » oldest newest most voted

answered 2020-08-16 04:55:49 -0600

tmonteil gravatar image

The converter was included in the old sagenb, which does not exist anymore because it was written in Python 2 and is unmaintained.

We are working on having the converter (extracted fromsagenb source code) back in Sage, see trac ticket 28838

Another possibility is to install an old version of Sage and translate the .sws files to .rst and then from .rst to .ipynb format with the sage -rst2ipynb command.

If you do not want to install anything, you can the Sage Debian Live whose current version on the Sage mirrors still provides sagenb and the sage -sws2rst command.

edit flag offensive delete link more


Thank you. Where can I find an old version of Sage? Will the old legacy notebook work in the old Sage?

sagelearner gravatar imagesagelearner ( 2020-08-16 05:22:52 -0600 )edit

You can find all old versions of Sage on the download page including old binaries, see

Sébastien gravatar imageSébastien ( 2020-08-16 12:53:17 -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


Asked: 2020-08-16 03:34:14 -0600

Seen: 161 times

Last updated: Aug 16 '20