Code Interpreter

Private

Description

Execute code with specified interpreter such as Python or other that provides a Jupyter kernel.

Capabilities

  • execute_code
    Executes the given code snippet using the specified Jupyter kernel. Collects and returns a list of Jupyter-compliant outputs where each output's type may be stream, display data, execute result or error. Subsequent calls to the same kernel will share the state from previous calls.
  • list_kernels
    Lists all available Jupyter kernels. Kernels may be installed as usually with Jupyter and they should then appear on this list and become available for code execution.