Ask Your Question

Revision history [back]

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'])

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'])

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'])