You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.
Raises RuntimeError: This event loop is already running
This is caused by the fact that the latest versions of Tornado (which is used by Jupyter/ipykernel) runs an asyncio loop on the main thread by default:
From an aioinflux perspective, a possible work around would be to start a new event loop on a background thread and use asyncio.run_coroutine_threadsafe to run the coroutine and return a concurrent.futures.Future object that wraps the result.
The text was updated successfully, but these errors were encountered:
Currently, the
blocking
mode won't work on Python 3.7 running on Jupyter. The code below:Raises
RuntimeError: This event loop is already running
This is caused by the fact that the latest versions of Tornado (which is used by Jupyter/ipykernel) runs an asyncio loop on the main thread by default:
This is being discussed on jupyter/notebook#3397
From an aioinflux perspective, a possible work around would be to start a new event loop on a background thread and use
asyncio.run_coroutine_threadsafe
to run the coroutine and return aconcurrent.futures.Future
object that wraps the result.The text was updated successfully, but these errors were encountered: