nest-asyncio

jupyter notebooks-safe asyncio run wrapper method for a library

jupyter notebooks-safe asyncio run wrapper method for a library Question: I’m building a library that leverages asyncio internally. While the user shouldn’t be aware of it, the internal implementation currently wraps the async code with the asyncio.run() porcelain wrapper. However, some users will be executing this library code from a jupyter notebook, and I’m struggling …

Total answers: 2

Not seeing speed up with Python Async IO

Not seeing speed up with Python Async IO Question: I have an IO operation (POST request for each Pandas row) which I’m trying to speed up using Async IO. An alternative minimal example can be found below. I want to understand why the 1st sample doesn’t run in parallel and 2nd sample is faster. 1st …

Total answers: 1