RuntimeError: This event loop is already running in python

I got the issue resolved by using the nest_async

pip install nest-asyncio

and adding below lines in my file.

import nest_asyncio
nest_asyncio.apply()
__import__('IPython').embed()

Leave a Comment