Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I guess this is a bug, since the documentation do not restrict the use of init.sage to the command line. Thanks for reporting.

A workaround could be to add the following line at the beginning of your worksheet:

import os ; load(os.environ['SAGE_STARTUP_FILE'])
click to hide/show revision 2
No.2 Revision

I guess this is a bug, since the documentation do not restrict the use of init.sage to the command line. Thanks for reporting.reporting. Note that it works on the jupyter notebook, only the Sage notebook is affected.

A workaround could be to add the following line at the beginning of your worksheet:

import os ; load(os.environ['SAGE_STARTUP_FILE'])
click to hide/show revision 3
No.3 Revision

I guess this is a bug, since the documentation do not restrict the use of init.sage to the command line. Thanks for reporting. reporting, it is now trac ticket 20042. Note that it works on the jupyter notebook, only the Sage notebook is affected.

A workaround could be to add the following line at the beginning of your worksheet:

import os ; load(os.environ['SAGE_STARTUP_FILE'])