Running asyncio in Jupyter
06/10/2020 14:58
https://stackoverflow.com/questions/55409641/asyncio-run-cannot-be-called-from-a-running-event-loop
When you are running asyncio code in jupyter you don't need to do:
asyncio.run(main())
or
loop = asyncio.get_event_loop()
try:
loop.run_until_complete(main())
finally:
loop.close()
You can simply call
await main()