Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async download not working in Jupyter Notebook #244

Open
robertcv opened this issue Apr 19, 2021 · 3 comments
Open

Async download not working in Jupyter Notebook #244

robertcv opened this issue Apr 19, 2021 · 3 comments

Comments

@robertcv
Copy link
Contributor

robertcv commented Apr 19, 2021

Trying to download expression data with the new async functionality in a Jupyter Notebook results in the following error:

RuntimeError: This event loop is already running

From doing a bit of research it seems that the problem is that notebooks also use the async loop and the functionality can't be nested. The current workaround is to use the package nest_asyncio and add the following before downloading expressions:

import nest_asyncio
nest_asyncio.apply()

When time allowed we should probably look more into it and see if there is a permanent fix for this.

@robertcv
Copy link
Contributor Author

Some reference: notebook issue 3397

@JureZmrzlikar
Copy link
Member

Thanks for reporting. For now, I agree we can leave users to patch their notebooks with the nest_asyncio.apply(), but if this becomes painful enough, we can try to solve in ReSDK.

@uksurd88
Copy link

Thanks @romunov for linking me here, I hit the same error today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants