Skip to content

Only capture print calls when directed at standard output #83

@almarklein

Description

@almarklein

In order to prevent that calls to print() are lost, jupyter_rfb overloads builtins.print via a context manager, and places printed messages below the widget.

The problem, as indicated by @QuLogic in a comment in #37, is that it redirects all prints, regardless of the file argument.

Some options:

  • Check whether the problem that messages are not shown anywhere still persist in recent versions of Jupyter.
  • Check the file argument.
  • I don't recall all the details, but is there a sys.stdout that we can capture instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions