Ask Your Question
0

[sagenb] load modules

asked 2011-06-30 05:02:41 -0600

riemann gravatar image

updated 2011-06-30 06:08:52 -0600

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 08:15:18 -0600

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 05:02:41 -0600

Seen: 81 times

Last updated: Jun 30 '11