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()
More Related Contents:
- “Fire and forget” python async/await
- Asynchronous method call in Python?
- How to limit concurrency with Python asyncio?
- multiprocessing vs multithreading vs asyncio in Python 3
- Asyncio.gather vs asyncio.wait
- Timeout for python coroutines
- “Asyncio Event Loop is Closed” when getting loop
- Can an asyncio event loop run in the background without suspending the Python interpreter?
- How do I run Python asyncio code in a Jupyter notebook?
- Combine awaitables like Promise.all
- What kind of problems (if any) would there be combining asyncio with multiprocessing?
- How to test Python 3.4 asyncio code?
- How to use ‘yield’ inside async function?
- How to call an async function without await?
- asyncio: Is it possible to cancel a future been run by an Executor?
- Mocking async call in python 3.5
- Why can I only use the await keyword inside of async function?
- How to do multiprocessing in FastAPI
- How to set class attribute with await in __init__
- aiohttp: set maximum number of requests per second
- How can I await inside future-like object’s __await__?
- How to properly create and run concurrent tasks using python’s asyncio module?
- Make a Python asyncio call from a Flask route
- Why does the asyncio’s event loop suppress the KeyboardInterrupt on Windows?
- Is there a way to use asyncio.Queue in multiple threads?
- Create generator that yields coroutine results as the coroutines finish
- How to terminate long-running computation (CPU bound task) in Python using asyncio and concurrent.futures.ProcessPoolExecutor?
- aiohttp: rate limiting parallel requests
- Handling Timeouts with asyncio
- How to combine Celery with asyncio?