Skip to content

Commit

Permalink
mention atty shenanigans + format
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Dec 13, 2023
1 parent b60bc19 commit ccadb17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/python/stdio/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env python3
"""
Demonstrates how to log data to standard output with the Rerun SDK, and then visualize it
from standard input with the Rerun Viewer.
"""
"""Demonstrates how to use standard input/output with the Rerun SDK/Viewer."""
from __future__ import annotations

import sys
Expand All @@ -17,4 +14,4 @@

input = sys.stdin.buffer.read()

rr.log("stdin", rr.TextDocument(input.decode('utf-8')))
rr.log("stdin", rr.TextDocument(input.decode("utf-8")))
3 changes: 3 additions & 0 deletions rerun_py/rerun_sdk/rerun/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def stdout(recording: RecordingStream | None = None) -> None:
Call this _before_ you log any data!
If there isn't any listener at the other end of the pipe, the `RecordingStream` will
default back to `buffered` mode, in order not to break the user's terminal.
Parameters
----------
recording:
Expand Down

0 comments on commit ccadb17

Please sign in to comment.