| 1 | initial version |
If your worksheet is written in ipython/jupyter, you can do:
sage -ipython nbconvert --to script <your_worksheet>.ipynb
If your worksheet is written in sage_notebook, you can do:
sage -sws2rst <your_worksheet>.sws
In both cases, you will get some text file that is not exactly a python file, but from which it is easy to remove the few additional stiff to get a python file.
| 2 | No.2 Revision |
If your worksheet is written in ipython/jupyter, you can do:
sage -ipython nbconvert --to script <your_worksheet>.ipynb
If your worksheet is written in sage_notebook, you can do:
sage -sws2rst <your_worksheet>.sws
In both cases, you will get some text file that is not exactly a python file, but from which it is easy to remove the very few additional stiff stuff to get a python file.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.