File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
- """
3
- Demonstrates how to log data to standard output with the Rerun SDK, and then visualize it
4
- from standard input with the Rerun Viewer.
5
- """
2
+ """Demonstrates how to use standard input/output with the Rerun SDK/Viewer."""
6
3
from __future__ import annotations
7
4
8
5
import sys
17
14
18
15
input = sys .stdin .buffer .read ()
19
16
20
- rr .log ("stdin" , rr .TextDocument (input .decode (' utf-8' )))
17
+ rr .log ("stdin" , rr .TextDocument (input .decode (" utf-8" )))
Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ def stdout(recording: RecordingStream | None = None) -> None:
76
76
77
77
Call this _before_ you log any data!
78
78
79
+ If there isn't any listener at the other end of the pipe, the `RecordingStream` will
80
+ default back to `buffered` mode, in order not to break the user's terminal.
81
+
79
82
Parameters
80
83
----------
81
84
recording:
You can’t perform that action at this time.
0 commit comments