Skip to main content

Explain Error Agent

The Explain Error Agent explains an error encountered in a notebook. It leverages AI models to explain the error in the code cell, providing insights into the error and potential solutions by adding new cells. This is a great Agent to support the following use cases:

  • Error Explanation: Explain the error encountered in the code cell.
  • Error Resolution: Provide potential solutions to resolve the error.

Jupyter AI Agents

jupyter-ai-agents explain-error \
--url http://localhost:8888 \
--token MY_TOKEN \
--azure-ai-deployment-name gpt-40-mini \
--path test.ipynb

Parameters

  • --url: JupyterLab URL.
  • --token: JupyterLab token.
  • --azure-ai-deployment-name: Azure AI model deployment name.
  • --path: Notebook to modify path.
  • --current-cell-index: Optional flag to provide the index of the cell where the error is encountered. If not provided, the error considered is the first one in the notebook.