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)