function definition doesn't work in startup file
I have this in my jupyter startup file. The os works, but the function definition doesn't take, although I know it works when I paste it in after startup. (I like range to not cut off the last number, but I don't want to type include_endpoint every time.) Do function definitions not work in startup? What does work?
import os os.chdir("allsagemathprogs")
def endrange(a,b,c=1): return srange(a,b,c,include_endpoint=True)
Shouldn't this go to your Sagestartup file ?
I mis-spoke. Yes, it is the sage startup file, and the os part works, so I'm puzzled why I can't define a function.