init.sage doesn't work for the notebook server?
Hello!
I have the same problem as in Is there a way to prefix all sage code in order to include a custom module?, but the init.sage appears not to work with notebook's worksheet. Here is what I have:
$ cat ~/.sage/init.sage
import numpy as np
then inside Sage I have:
$ ./sage
sage: np
<module 'numpy' from ....>
But then I run notebook() and create a new worksheet, inside that worksheet session:
np
NameError: name 'np' is not defined
So I assume that the script was not executed for the worksheet.
Is there a way to create sage.init but for the worksheets?
P.S. I edited question to make it simpler. I that may be a bug?