start time:
plugins = [ "https://pyscript.net/latest/plugins/python/py_tutor.py" ] [[fetch]] files = ["./pyscript0001.py"] import pyscript0001 display(pyscript0001.now2()) from pyscript0001 import now import asyncio async def foo(): while True: await asyncio.sleep(1) output = now() Element("outputDiv2").write(output) out3 = Element("outputDiv3") if output[-1] in ["0", "4", "8"]: out3.write("It's espresso time!") else: out3.clear() pyscript.run_until_complete(foo())