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 11#!/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."""
63from __future__ import annotations
74
85import sys
1714
1815input = sys .stdin .buffer .read ()
1916
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:
7676
7777 Call this _before_ you log any data!
7878
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+
7982 Parameters
8083 ----------
8184 recording:
You can’t perform that action at this time.
0 commit comments