1 | initial version |
I find that many environment variables are stored in variable SAGE_ENV. For the question of start up script, the init.sage file do work in command line mode, and not work for sage notebook. For Jupyter notebook, we can setup start up script in the following way:
In [1]: profile = get_ipython().profile_dir.location
In [2]: %%writefile $profile/startup/start.ipy
...some codes you want to run...
Note: the codes are executed for python2 kernel and sagemath kernel