Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 13 years ago

Kabi gravatar image

I have done something similar to what you suggest to solve this. I have defined the following in init.sage, which is run every time a worksheet opens:

def clear():
reset()
attach('~/.sage/init.sage')

I can then use clear() instead of reset(), and all other functions and options put in init.sage will be available all the time. But thanks for pointing me in the right direction.

click to hide/show revision 2
No.2 Revision

I have done something similar to what you suggest to solve this. I have defined the following in init.sage, which is run every time a worksheet opens:

def clear():
 reset()
 attach('~/.sage/init.sage')

I can then use clear() instead of reset(), and all other functions and options put in init.sage will be available all the time. But thanks for pointing me in the right direction.