We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ad87ae commit b17adc9Copy full SHA for b17adc9
langgraphics/watch.py
@@ -43,6 +43,8 @@ def watch(
43
port: int = 8764,
44
ws_port: int = 8765,
45
open_browser: bool = True,
46
+ theme: str = "system",
47
+ direction: str = "TB",
48
) -> Viewport:
49
topology = extract(graph)
50
manager = Broadcaster(topology)
@@ -52,6 +54,6 @@ def watch(
52
54
start_ws_server(manager, host, ws_port)
53
55
56
if open_browser:
- webbrowser.open(f"http://{host}:{port}")
57
+ webbrowser.open(f"http://{host}:{port}?theme={theme}&direction={direction}")
58
59
return Viewport(graph, manager, edge_lookup, http_server)
0 commit comments