Skip to content

Commit 014a9d4

Browse files
committed
grpc example
1 parent 8f3e301 commit 014a9d4

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const options = [
1212
label: "structure from motion",
1313
value: "https://app.rerun.io/version/0.20.3/examples/structure_from_motion.rrd",
1414
},
15+
{
16+
label: "grpc",
17+
value: "rerun+http://127.0.0.1:9876/proxy",
18+
},
1519
];
1620

1721
export default function App() {

temp.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# /// script
2+
# requires-python = ">=3.10"
3+
# dependencies = [
4+
# "rerun-sdk",
5+
# ]
6+
# ///
7+
8+
import rerun as rr
9+
import time
10+
11+
def main() -> None:
12+
rr.init("rerun_example_react_grpc")
13+
rr.serve_grpc()
14+
15+
doc = """
16+
### Hello from gRPC
17+
"""
18+
19+
rr.log("text", rr.TextDocument(doc))
20+
21+
while True:
22+
time.sleep(1)
23+
24+
25+
if __name__ == "__main__":
26+
main()

0 commit comments

Comments
 (0)