Ask Your Question

[sagenb] load modules

asked 2011-06-30 12:02:41 +0200

riemann gravatar image

updated 2011-06-30 13:08:52 +0200

How do you add existing Sage/Python Scripts as a module to the sagenb such that it loads automatically every it starts?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-06-30 15:15:18 +0200

kcrisman gravatar image

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


I think.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-06-30 12:02:41 +0200

Seen: 272 times

Last updated: Jun 30 '11