jupyter_rfb icon indicating copy to clipboard operation
jupyter_rfb copied to clipboard

Only capture print calls when directed at standard output

Open almarklein opened this issue 2 years ago • 0 comments

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?

almarklein avatar Nov 08 '23 10:11 almarklein