|
12 | 12 | "Populates CoordiNode with a **tech industry knowledge graph**.\n", |
13 | 13 | "\n", |
14 | 14 | "> **Note:** Embedded mode writes to `COORDINODE_EMBEDDED_PATH` (default\n", |
15 | | - "> `/content/coordinode-demo.db` in Colab, `/tmp/coordinode-demo.db` locally), so\n", |
| 15 | + "> `/content/coordinode-demo.db` in Colab, the OS temp dir locally), so\n", |
16 | 16 | "> the seeded graph persists across cell reruns and is visible to sibling demo\n", |
17 | 17 | "> notebooks within the same runtime. Delete the file or set a different path to\n", |
18 | 18 | "> reset. Connecting to a real CoordiNode server via `COORDINODE_ADDR` is also\n", |
|
146 | 146 | "\n", |
147 | 147 | "- **Colab**: uses `LocalClient(COORDINODE_EMBEDDED_PATH)` \u2014 in-process embedded engine backed by a file under `/content/`, no server required.\n", |
148 | 148 | "- **Local with server**: set `COORDINODE_ADDR=host:port` to point at a running CoordiNode (no auto-probe \u2014 explicit only).\n", |
149 | | - "- **Local without server**: uses `coordinode-embedded` (file-backed at `COORDINODE_EMBEDDED_PATH`, default `/tmp/coordinode-demo.db`). Raises `RuntimeError` with install instructions if the package is missing." |
| 149 | + "- **Local without server**: uses `coordinode-embedded` (file-backed at `COORDINODE_EMBEDDED_PATH`, defaulting to the OS temp dir). Raises `RuntimeError` with install instructions if the package is missing." |
150 | 150 | ] |
151 | 151 | }, |
152 | 152 | { |
|
186 | 186 | " except ImportError as exc:\n", |
187 | 187 | " raise RuntimeError(\n", |
188 | 188 | " \"coordinode-embedded is not installed. \"\n", |
189 | | - " \"Run the install cell above, or start a CoordiNode server and set COORDINODE_ADDR.\"\n", |
| 189 | + " \"In Colab, rerun the install cell above. \"\n", |
| 190 | + " \"Locally, install from source: \"\n", |
| 191 | + " \"pip install 'git+https://github.com/structured-world/coordinode-python.git#subdirectory=coordinode-embedded' \"\n", |
| 192 | + " \"(requires Rust toolchain, ~5 min build). \"\n", |
| 193 | + " \"Alternatively start a CoordiNode server and set COORDINODE_ADDR.\"\n", |
190 | 194 | " ) from exc\n", |
191 | 195 | "\n", |
192 | 196 | " client = LocalClient(COORDINODE_EMBEDDED_PATH)\n", |
|
466 | 470 | "\n", |
467 | 471 | "print(\"\\n\u2713 Demo data seeded.\")\n", |
468 | 472 | "print(\"To query it from notebooks 01\u201303:\")\n", |
469 | | - "print(\" - Embedded mode: open them with the same COORDINODE_EMBEDDED_PATH (default /content/coordinode-demo.db in Colab, /tmp/coordinode-demo.db locally) \u2014 they will see this seeded graph.\")\n", |
| 473 | + "print(f\" - Embedded mode: open them with the same COORDINODE_EMBEDDED_PATH (this run: {COORDINODE_EMBEDDED_PATH}) \u2014 they will see this seeded graph.\")\n", |
470 | 474 | "print(\" - Server mode: point them at the same running CoordiNode via COORDINODE_ADDR.\")\n", |
471 | 475 | "client.close()" |
472 | 476 | ] |
|
0 commit comments