nest_asyncio
import asyncio import nest_asyncio nest_asyncio.apply() async def run_thing(): await asyncio.sleep(2) asyncio.get_running_loop().run_until_complete(run_thing())
on_click
to allow async. im not sure if there are any limitations for us to do that