ConvertingSageJupyter - DrXyzzy/cocalc GitHub Wiki
Converting between Sage Worksheets and Jupyter Notebooks
To Convert a Sage Worksheet to a Jupyter notebook
By clicking a button...
- Open the Sage worksheet
- Click the button labeled Jupyter near the top right, right by the printer icon.
By using the command line terminal
- Create a terminal in the same directory as your .sagews file.
- Type
cc-sagews2ipynb "filename.sagews"
- Then open the resulting
filename.ipynb
, e.g., by typing open filename.ipynb
or by clicking in the file manager.
To Convert a Jupyter notebook to a Sage Worksheet
By selecting a menu option
- Open the Jupyter notebook
- Click File --> Download as --> "Sage Worksheet"
- In the resulting dialog, when the conversion is complete, click "Edit exported file..." to open the Sage worksheet.
By using the command line terminal
- Create a terminal in the same directory as your .ipynb file.
- Type
cc-ipynb2sagews "filename.ipynb"
- Then open the resulting
filename.sagews
, e.g., by typing open filename.sagews
or by clicking in the file manager.