I'm trying to reuse the output of the time-consuming function in other functions without re-run it again. example:
%%time
def func1():
sleep(100)
y = 123
return y
func1()
Wall time: 100 s
%%time
def func2():
x = func1()
return x
func2()
Wall time: 100 s
I want func2 to reuse my output of fun1 without waiting for another 100 all over again.