Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 93 additions & 93 deletions demo/three_notebooks/notebooks/cpu-a.ipynb
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
{
"cells": [
"cells": [
{
"cell_type": "markdown",
"id": "kE_AdzaefQX0",
"metadata": {},
"source": [
"# Demo CPU A\n",
"Local repository notebook managed by Cool Colab MCP. Demonstrates multi-notebook orchestration."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "J3L28UMOfQb1",
"metadata": {},
"outputs": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Demo CPU A\n",
"Local repository notebook managed by Cool Colab MCP. Demonstrates multi-notebook orchestration."
],
"id": "kE_AdzaefQX0"
},
{
"cell_type": "code",
"metadata": {},
"source": [
"import platform\n",
"import json\n",
"from datetime import UTC, datetime\n",
"\n",
"info = {\n",
" \"notebook\": \"cpu-a\",\n",
" \"python\": platform.python_version(),\n",
" \"machine\": platform.machine(),\n",
" \"timestamp\": datetime.now(UTC).isoformat(),\n",
"}\n",
"print(json.dumps(info, indent=2))"
],
"id": "J3L28UMOfQb1",
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"{\n",
" \"notebook\": \"cpu-a\",\n",
" \"python\": \"3.12.13\",\n",
" \"machine\": \"x86_64\",\n",
" \"timestamp\": \"2026-07-21T16:23:36.215064+00:00\"\n",
"}\n"
]
}
]
},
"name": "stdout",
"output_type": "stream",
"text": [
"{\n",
" \"notebook\": \"cpu-a\",\n",
" \"python\": \"3.12.13\",\n",
" \"machine\": \"x86_64\",\n",
" \"timestamp\": \"2026-07-21T16:23:36.215064+00:00\"\n",
"}\n"
]
}
],
"source": [
"import platform\n",
"import json\n",
"from datetime import UTC, datetime\n",
"\n",
"info = {\n",
" \"notebook\": \"cpu-a\",\n",
" \"python\": platform.python_version(),\n",
" \"machine\": platform.machine(),\n",
" \"timestamp\": datetime.now(UTC).isoformat(),\n",
"}\n",
"print(json.dumps(info, indent=2))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "q9kfzfgxfQie",
"metadata": {},
"outputs": [
{
"cell_type": "code",
"metadata": {},
"source": [
"# Verify CPU runtime\n",
"try:\n",
" import torch\n",
"\n",
" print(\"accelerator:\", \"GPU\" if torch.cuda.is_available() else \"CPU\")\n",
"except ImportError:\n",
" print(\"accelerator: CPU (no torch)\")"
],
"id": "q9kfzfgxfQie",
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"accelerator: CPU\n"
]
}
]
},
"name": "stdout",
"output_type": "stream",
"text": [
"accelerator: CPU\n"
]
}
],
"source": [
"# Verify CPU runtime\n",
"try:\n",
" import torch\n",
"\n",
" print(\"accelerator:\", \"GPU\" if torch.cuda.is_available() else \"CPU\")\n",
"except ImportError:\n",
" print(\"accelerator: CPU (no torch)\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "_hGo-TE_fQsH",
"metadata": {},
"outputs": [
{
"cell_type": "code",
"metadata": {},
"source": [
"# Mount Google Drive (consent auto-approved with --auto-drive)\n",
"from google.colab import drive\n",
"\n",
"drive.mount(\"/content/drive\")\n",
"import os\n",
"\n",
"print(\"drive-mounted:\", os.path.isdir(\"/content/drive/MyDrive\"))\n"
],
"id": "_hGo-TE_fQsH",
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n",
"drive-mounted: True\n"
]
}
]
"name": "stdout",
"output_type": "stream",
"text": [
"Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n",
"drive-mounted: True\n"
]
}
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
],
"source": [
"# Mount Google Drive (consent auto-approved with --auto-drive)\n",
"import os\n",
"\n",
"from google.colab import drive\n",
"\n",
"drive.mount(\"/content/drive\")\n",
"print(\"drive-mounted:\", os.path.isdir(\"/content/drive/MyDrive\"))"
]
}
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
196 changes: 98 additions & 98 deletions demo/three_notebooks/notebooks/t4.ipynb
Original file line number Diff line number Diff line change
@@ -1,103 +1,103 @@
{
"cells": [
"cells": [
{
"cell_type": "markdown",
"id": "jlE-a7wMfWCb",
"metadata": {},
"source": [
"# Demo T4 GPU\n",
"Local repository notebook managed by Cool Colab MCP. Demonstrates GPU session in a concurrent multi-notebook run."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0LTBK6L_fWH9",
"metadata": {},
"outputs": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Demo T4 GPU\n",
"Local repository notebook managed by Cool Colab MCP. Demonstrates GPU session in a concurrent multi-notebook run."
],
"id": "jlE-a7wMfWCb"
},
{
"cell_type": "code",
"metadata": {},
"source": [
"import platform\n",
"import json\n",
"from datetime import UTC, datetime\n",
"\n",
"info = {\n",
" \"notebook\": \"t4\",\n",
" \"python\": platform.python_version(),\n",
" \"machine\": platform.machine(),\n",
" \"timestamp\": datetime.now(UTC).isoformat(),\n",
"}\n",
"print(json.dumps(info, indent=2))"
],
"id": "0LTBK6L_fWH9",
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"{\n",
" \"notebook\": \"t4\",\n",
" \"python\": \"3.12.13\",\n",
" \"machine\": \"x86_64\",\n",
" \"timestamp\": \"2026-07-21T16:23:44.817544+00:00\"\n",
"}\n"
]
}
]
},
"name": "stdout",
"output_type": "stream",
"text": [
"{\n",
" \"notebook\": \"t4\",\n",
" \"python\": \"3.12.13\",\n",
" \"machine\": \"x86_64\",\n",
" \"timestamp\": \"2026-07-21T16:23:44.817544+00:00\"\n",
"}\n"
]
}
],
"source": [
"import platform\n",
"import json\n",
"from datetime import UTC, datetime\n",
"\n",
"info = {\n",
" \"notebook\": \"t4\",\n",
" \"python\": platform.python_version(),\n",
" \"machine\": platform.machine(),\n",
" \"timestamp\": datetime.now(UTC).isoformat(),\n",
"}\n",
"print(json.dumps(info, indent=2))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3cPgrIXFfWQn",
"metadata": {},
"outputs": [
{
"cell_type": "code",
"metadata": {},
"source": [
"# Verify GPU runtime\n",
"try:\n",
" import torch\n",
"\n",
" if torch.cuda.is_available():\n",
" print(f\"GPU: {torch.cuda.get_device_name(0)}\")\n",
" print(f\"VRAM: {torch.cuda.get_device_properties(0).total_memory // 1024**2} MB\")\n",
" else:\n",
" print(\"No GPU available\")\n",
"except ImportError:\n",
" print(\"torch not installed\")"
],
"id": "3cPgrIXFfWQn",
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"GPU: Tesla T4\n",
"VRAM: 14912 MB\n"
]
}
]
},
"name": "stdout",
"output_type": "stream",
"text": [
"GPU: Tesla T4\n",
"VRAM: 14912 MB\n"
]
}
],
"source": [
"# Verify GPU runtime\n",
"try:\n",
" import torch\n",
"\n",
" if torch.cuda.is_available():\n",
" print(f\"GPU: {torch.cuda.get_device_name(0)}\")\n",
" print(f\"VRAM: {torch.cuda.get_device_properties(0).total_memory // 1024**2} MB\")\n",
" else:\n",
" print(\"No GPU available\")\n",
"except ImportError:\n",
" print(\"torch not installed\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "XudqQqRVfWZk",
"metadata": {},
"outputs": [
{
"cell_type": "code",
"metadata": {},
"source": [
"# Mount Google Drive (consent auto-approved with --auto-drive)\n",
"from google.colab import drive\n",
"\n",
"drive.mount(\"/content/drive\")\n",
"import os\n",
"\n",
"print(\"drive-mounted:\", os.path.isdir(\"/content/drive/MyDrive\"))\n"
],
"id": "XudqQqRVfWZk",
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Mounted at /content/drive\n",
"drive-mounted: True\n"
]
}
]
"name": "stdout",
"output_type": "stream",
"text": [
"Mounted at /content/drive\n",
"drive-mounted: True\n"
]
}
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
],
"source": [
"# Mount Google Drive (consent auto-approved with --auto-drive)\n",
"import os\n",
"\n",
"from google.colab import drive\n",
"\n",
"drive.mount(\"/content/drive\")\n",
"print(\"drive-mounted:\", os.path.isdir(\"/content/drive/MyDrive\"))"
]
}
],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
Loading
Loading