In [1]:
from ipytangle import tangle

jar = tangle(cookies=3, calories=(150, lambda cookies: cookies * 50))
jar


:0: FutureWarning: IPython widgets are experimental and may change in the future.

When you eat cookies cookies, you consume calories calories. cookies == 0 Come on, have a cookie! cookies == 1 You can't eat just one! Buh, too many cookies.


In [19]:
jar.cookies = 1