## Running the Agent

### Follow the steps in Jupyter Notebook to complete Agent execution

1. Click [VS Code](${LAB:HTTPS_REVERSE_PROXY_URL}?next=${LAB:"/vscode/?folder=/root/tidb-lab-ai/solutions/graphrag-agent/en"|urlencode} "VS Code") to open the IDE.

   > [!TIP]
   > When prompted, click `Yes, I trust the authors` in the popup window.

2. Click the Jupyter Notebook `graphrag-agent.ipynb` in the left `EXPLORER`.

    ![GraphRAG Agent Jupyter Notebook in VS Code](https://lab-static.pingcap.com/images/2025/7/22/e5a3bd69b1815009b21ad9535cfee8d76e492b3b.png)

3. After opening the Jupyter Notebook, click the top right `Select Kernel` and choose `Python Environments...` in the popup.

    ![Select Python Environments](https://lab-static.pingcap.com/images/2025/7/22/4dc03f53a0636e632cb7959bab4f16d3a47e80d8.png)

4. Select the recommended `Python 3.11.11` option.
5. Now you can follow the instructions in the Jupyter Notebook to complete this module.
6. For more information about Jupyter Notebook, see the [Jupyter Project documentation](https://docs.jupyter.org/en/latest/).
