1 | initial version |
This is at least one possibility
$ sage -sh
$ jupyter bconvert --to='python' --output-dir=/tmp test1.ipynb
$ sage /tmp/test1.py
However, I am not sure how much the conversion is reliable. Why not storing your scripts as python files instead of notebooks?
2 | No.2 Revision |
This is at least one possibility
$ sage -sh
$ jupyter bconvert convert --to='python' --output-dir=/tmp test1.ipynb
$ sage /tmp/test1.py
However, I am not sure how much the conversion is reliable. Why not storing your scripts as python files instead of notebooks?