Ask Your Question

Revision history [back]

click to hide/show revision 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?

click to hide/show revision 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?