|
303 | 303 | " print(\" - Enter a branch name (e.g., 'develop', 'main') to clone and install\")\n", |
304 | 304 | " print(\"=\" * 60)\n", |
305 | 305 | "\n", |
306 | | - " branch_name = input(\"\\nEnter your choice: \").strip()\n", |
| 306 | + " branch_name = os.getenv(\"NAT_NOTEBOOK_INSTALL_MODE\", \"\").strip()\n", |
| 307 | + " if not branch_name:\n", |
| 308 | + " branch_name = input(\"\\nEnter your choice: \").strip()\n", |
307 | 309 | "\n", |
308 | 310 | " # Default to 'main' if empty\n", |
309 | 311 | " if not branch_name:\n", |
|
499 | 501 | "id": "c8e1c22d", |
500 | 502 | "metadata": {}, |
501 | 503 | "source": [ |
502 | | - "Wait about 10 seconds before running the next cell...\n", |
503 | | - "\n", |
504 | 504 | "The `--bg` command will run your server in the background of the notebook, so you might not see confirmation that the server is running. To see the startup logs, you can remove this flag and run the cell again. However, subsequent steps require the server to be run as a background process.\n", |
505 | 505 | "\n", |
506 | 506 | "Next, we will list the set of available tools from `simple_calculator` MCP server." |
507 | 507 | ] |
508 | 508 | }, |
| 509 | + { |
| 510 | + "cell_type": "code", |
| 511 | + "execution_count": null, |
| 512 | + "id": "c2d15d0d", |
| 513 | + "metadata": {}, |
| 514 | + "outputs": [], |
| 515 | + "source": [ |
| 516 | + "# Wait about 10 seconds before running the next cell...\n", |
| 517 | + "import time\n", |
| 518 | + "time.sleep(10)" |
| 519 | + ] |
| 520 | + }, |
509 | 521 | { |
510 | 522 | "cell_type": "code", |
511 | 523 | "execution_count": null, |
512 | 524 | "id": "afdef7a1", |
513 | 525 | "metadata": {}, |
514 | 526 | "outputs": [], |
515 | 527 | "source": [ |
516 | | - "# For streamable-http transport (default)\n", |
517 | | - "!nat mcp client tool list --url http://localhost:9901/mcp" |
| 528 | + "%%bash\n", |
| 529 | + "nat mcp client tool list --url http://localhost:9901/mcp" |
518 | 530 | ] |
519 | 531 | }, |
520 | 532 | { |
|
572 | 584 | ] |
573 | 585 | }, |
574 | 586 | { |
575 | | - "cell_type": "markdown", |
576 | | - "id": "9b013a00", |
| 587 | + "cell_type": "code", |
| 588 | + "execution_count": null, |
| 589 | + "id": "111c81a7", |
577 | 590 | "metadata": {}, |
| 591 | + "outputs": [], |
578 | 592 | "source": [ |
579 | | - "Wait about 10 seconds before running the next cell..." |
| 593 | + "# Wait about 10 seconds before running the next cell...\n", |
| 594 | + "import time\n", |
| 595 | + "time.sleep(10)" |
580 | 596 | ] |
581 | 597 | }, |
582 | 598 | { |
|
629 | 645 | ] |
630 | 646 | }, |
631 | 647 | { |
632 | | - "cell_type": "markdown", |
633 | | - "id": "664a9ed6", |
| 648 | + "cell_type": "code", |
| 649 | + "execution_count": null, |
| 650 | + "id": "7ce2eebb", |
634 | 651 | "metadata": {}, |
| 652 | + "outputs": [], |
635 | 653 | "source": [ |
636 | | - "Wait about 10 seconds before running the next cell..." |
| 654 | + "# Wait about 10 seconds before running the next cell...\n", |
| 655 | + "import time\n", |
| 656 | + "time.sleep(10)" |
637 | 657 | ] |
638 | 658 | }, |
639 | 659 | { |
|
954 | 974 | ] |
955 | 975 | }, |
956 | 976 | { |
957 | | - "cell_type": "markdown", |
958 | | - "id": "feae920e", |
| 977 | + "cell_type": "code", |
| 978 | + "execution_count": null, |
| 979 | + "id": "b7efca58", |
959 | 980 | "metadata": {}, |
| 981 | + "outputs": [], |
960 | 982 | "source": [ |
961 | | - "Wait about 10 seconds before running the next cell..." |
| 983 | + "# Wait about 10 seconds before running the next cell...\n", |
| 984 | + "import time\n", |
| 985 | + "time.sleep(10)" |
962 | 986 | ] |
963 | 987 | }, |
964 | 988 | { |
|
1071 | 1095 | ] |
1072 | 1096 | }, |
1073 | 1097 | { |
1074 | | - "cell_type": "markdown", |
1075 | | - "id": "b5d33205", |
| 1098 | + "cell_type": "code", |
| 1099 | + "execution_count": null, |
| 1100 | + "id": "7dc57c53", |
1076 | 1101 | "metadata": {}, |
| 1102 | + "outputs": [], |
1077 | 1103 | "source": [ |
1078 | | - "Wait about 10 seconds before running the next cell..." |
| 1104 | + "# Wait about 10 seconds before running the next cell...\n", |
| 1105 | + "import time\n", |
| 1106 | + "time.sleep(10)" |
1079 | 1107 | ] |
1080 | 1108 | }, |
1081 | 1109 | { |
|
1119 | 1147 | ] |
1120 | 1148 | }, |
1121 | 1149 | { |
1122 | | - "cell_type": "markdown", |
1123 | | - "id": "4835e115", |
| 1150 | + "cell_type": "code", |
| 1151 | + "execution_count": null, |
| 1152 | + "id": "cc1de7ca", |
1124 | 1153 | "metadata": {}, |
| 1154 | + "outputs": [], |
1125 | 1155 | "source": [ |
1126 | | - "Wait about 10 seconds before running the next cell..." |
| 1156 | + "# Wait about 10 seconds before running the next cell...\n", |
| 1157 | + "import time\n", |
| 1158 | + "time.sleep(10)" |
1127 | 1159 | ] |
1128 | 1160 | }, |
1129 | 1161 | { |
|
0 commit comments