[sagenb] load modules
How do you add existing Sage/Python Scripts as a module to the sagenb such that it loads automatically every it starts?
Thanks!
How do you add existing Sage/Python Scripts as a module to the sagenb such that it loads automatically every it starts?
Thanks!
You may be able to do this with a init.sage
file. You would place any code you wanted evaluated ahead of time (such as attach foo.sage
or implicit_multiplication(True)
there, and it should work.
The precise location should be in your home directory, in a file named
.sage/init.sage
I think.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-06-30 12:02:41 +0100
Seen: 308 times
Last updated: Jun 30 '11