Skip to content

Async download not working in Jupyter Notebook #244

Description

@robertcv

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions