Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only capture print calls when directed at standard output #83

Open
almarklein opened this issue Nov 8, 2023 · 0 comments
Open

Only capture print calls when directed at standard output #83

almarklein opened this issue Nov 8, 2023 · 0 comments

Comments

@almarklein
Copy link
Member

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 almarklein mentioned this issue Nov 8, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant