Ask Your Question

Rolf's profile - activity

2024-04-23 01:21:00 +0200 received badge  Notable Question (source)
2021-12-25 14:35:40 +0200 received badge  Popular Question (source)
2020-10-05 15:57:07 +0200 commented answer How to add .sws notebook files to SageNB so that I can convert them into .ipynb?

Thank you for the answer! Do I see it correctly that only the source code of the 9.2 beta is available to download? Would an older version that runs on Python 2 still work?

2020-10-02 17:32:03 +0200 received badge  Nice Question (source)
2020-10-02 16:51:45 +0200 received badge  Student (source)
2020-10-02 16:51:06 +0200 asked a question How to add .sws notebook files to SageNB so that I can convert them into .ipynb?

I have a bunch of .sws files, that were made (I suppose) with the now-deprecated sage notebook. Currently the default notebook application for Sage files is Jupyter, which cannot open these files. I tried

  1. Using the built in "sagenb-export" command (ask.sagemath.org/question/35873/how-to-automatically-convert-many-sws-to-ipynb/) and also a standalone package (github.com/vbraun/ExportSageNB) in order to do it, but the notebook list in sagenb is empty (sagenb-export --list shows an empty list) and I could not make it to convert files that are not on this list. When running sage -n, there is an option "Convert old notebooks to Jupyter", but the list below that line is empty as well Is there a way of importing .sws files into this list?

  2. An alternative way was to use the -sws2rst and -rst2ipynb flags that I found in an answer here (ask.sagemath.org/question/35873/how-to-automatically-convert-many-sws-to-ipynb/?answer=38197#post-id-38197), but that gives me ModuleNotFoundError: No module named 'sagenb'. Is it possible to install the sagenb module?