First time here? Check out the FAQ!
answered 2019-09-10 13:58:49 +0100
You can try with global variables, something like:
Cell 1
a = 3
Cell 2
@interact(n=a) def square(n): global a1 print("{} squared is {}".format(n, n*n)) a1 = n
Cell 3
a1