Skip to content

Commit 9044d9b

Browse files
committed
fix(notebooks): correct rustup invocation flags and StateGraph heading
- Remove -s and -- from subprocess.run(["/bin/sh", _rustup_path, ...]): -s reads script from stdin, which is wrong when passing a file path. Correct form is ["/bin/sh", path, "-y", "-q"]. Applies to notebooks 01, 02, and 03. - Rename "LangGraph StatefulGraph" heading to "LangGraph StateGraph" in notebook 03: langgraph exports StateGraph, not StatefulGraph.
1 parent 9cee719 commit 9044d9b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

demo/notebooks/01_llama_index_property_graph.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
" _f.write(_r.read())\n",
7070
" _rustup_path = _f.name\n",
7171
" try:\n",
72-
" subprocess.run([\"/bin/sh\", _rustup_path, \"-s\", \"--\", \"-y\", \"-q\"], check=True, timeout=300)\n",
72+
" subprocess.run([\"/bin/sh\", _rustup_path, \"-y\", \"-q\"], check=True, timeout=300)\n",
7373
" finally:\n",
7474
" os.unlink(_rustup_path)\n",
7575
" # Add cargo to PATH so maturin/pip can find it.\n",

demo/notebooks/02_langchain_graph_chain.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
" _f.write(_r.read())\n",
6767
" _rustup_path = _f.name\n",
6868
" try:\n",
69-
" subprocess.run([\"/bin/sh\", _rustup_path, \"-s\", \"--\", \"-y\", \"-q\"], check=True, timeout=300)\n",
69+
" subprocess.run([\"/bin/sh\", _rustup_path, \"-y\", \"-q\"], check=True, timeout=300)\n",
7070
" finally:\n",
7171
" os.unlink(_rustup_path)\n",
7272
" # Add cargo to PATH so maturin/pip can find it.\n",

demo/notebooks/03_langgraph_agent.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
" _f.write(_r.read())\n",
6767
" _rustup_path = _f.name\n",
6868
" try:\n",
69-
" subprocess.run([\"/bin/sh\", _rustup_path, \"-s\", \"--\", \"-y\", \"-q\"], check=True, timeout=300)\n",
69+
" subprocess.run([\"/bin/sh\", _rustup_path, \"-y\", \"-q\"], check=True, timeout=300)\n",
7070
" finally:\n",
7171
" os.unlink(_rustup_path)\n",
7272
" # Add cargo to PATH so maturin/pip can find it.\n",
@@ -347,7 +347,7 @@
347347
"id": "d4e5f6a7-0003-0000-0000-000000000010",
348348
"metadata": {},
349349
"source": [
350-
"## 3. LangGraph StatefulGraph — manual workflow\n",
350+
"## 3. LangGraph StateGraph — manual workflow\n",
351351
"\n",
352352
"Shows how to wire CoordiNode tool calls into a LangGraph state machine without an LLM."
353353
]

0 commit comments

Comments
 (0)