Ask Your Question

Revision history [back]

One way to go would be to install Sage 9.1 built for Python 2 (or to compile it from source), then run

sage -n

which will offer to export all SageNB worksheets (.sws) to Jupyter worksheets (.ipynb).

One way to go would be to Expanding on Eric's answer.

Solution 1.

  • install Sage 9.1 built for Python 2 (or to or compile it from source), source (possible up to Sage 9.1)
  • then run

    run sage -n
    

    -n which will offer to a few choices:

    • run the old SageNB
    • export all SageNB worksheets (.sws) to Jupyter worksheets (.ipynb).(.ipynb)
    • run Jupyter Notebook
  • or directly run sage -n export

Solution 2.

  • zip the .sage folder that exists in your user account on your computer
  • open an account on CoCalc if you don't have one,
  • create a new CoCalc project,
  • upload the zipped .sage to that new CoCalc project
  • unzip it there
  • in the CoCalc project's settings tab, change "software image" from "default" to "Ubuntu 18.04"
  • in a CoCalc terminal in that project, run sage_select 8.9
  • in a CoCalc terminal in that project, run sage -n export
  • then download the resulting .ipynb files back to your computer