Running this code under Spyder:
async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')
# Python 3.7+
print('go\n')
asyncio.run(main())
gives me:
RuntimeError: asyncio.run() cannot be called from a running event loop
Under IDLE or from the terminal, the code runs successfully.
Any thoughts?