Skip to content

Feature: Pipe non-traceback stderr into the stderr state. #380

Open
@glipR

Description

@glipR

Currently, because we don't pass the stderr function into pyodide initialisation, anything written to stderr that is not a traceback from an error just follows the default functionality, and gets sent to console.warn.

Preferably, anything written to sys.stderr in python should instead populate the stderr state from usePython.

MWE:
Paste the following code into the example from the react-py website:

import sys
print('test', file=sys.stderr)

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @elilambnz@glipR

      Issue actions

        Feature: Pipe non-traceback stderr into the `stderr` state. · Issue #380 · elilambnz/react-py