cascode
New Contributor II

You could try adding this:

import nest_asyncio

nest_asyncio.apply()

And in your code calling it like this:

asyncio.run(your_method())

Don't forget to install the nest_asyncio package.