Skip to content

Run inside Jupyter #92

Open
Open
@juliotux

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.

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