Ask Your Question
0

[sagenb] load modules

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

riemann gravatar image

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

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

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

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

.sage/init.sage

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

Stats

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

Seen: 334 times

Last updated: Jun 30 '11