In [1]:
from seamless.highlevel import Context

ctx = Context()
ctx.auto_translate = True

ctx2 = Context()
ctx2.auto_translate = True
ctx2.a = {}
ctx2.a.celltype = "plain"
ctx2.b = ctx2.a
ctx2.b.celltype = "text"

await ctx2.translation()

def callback(graph):
    ctx2.a.set(graph)
ctx.observe(("get_graph",), callback, 0.5)

w = ctx2.b.output()
import asyncio
await asyncio.sleep(5)

In [8]:
w



In [5]:
ctx.q = 7

In [11]:
await asyncio.sleep(3)
ctx.q = 8

In [17]:
await ctx.computation()

In [14]:
ctx.q.value


Out[14]:
<Silk: 8 >

In [15]:
await asyncio.sleep(1)

In [16]:
ctx.z = 20

In [ ]: