Skip to content

Run inside Jupyter #92

Description

@juliotux

With the recent changes, subprocess-tee is using asyncio.run. However, this call tries to create a new loop, raising an exception:

RuntimeError: asyncio.run() cannot be called from a running event loop

To reproduce, just create a Jupyter notebook with this cell and run:

import subprocess_tee
subprocess_tee.run('sleep 1')

More details at jupyter blog or stackoverflow.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions