Ask Your Question

Revision history [back]

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?

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?