Skip to main content

Run Code Interpreter (Python)

Description

The Code Interpreter with Python feature allows you to seamlessly request and receive code suggestions within comments. This powerful tool enhances your coding experience by providing quick and relevant code snippets.

With the integration of Jupyter Notebook, you can now execute code snippets directly in your environment.

Requirements

How to Use:

  • Requesting Code in a Comment:

    • Write a comment with your specific code request (Ensure your cursor is at the end of the comment line).
  • Initiating Code Suggestions:

    • Press cmd + shift + i to trigger the code suggestion mode.
  • Utilize the Code:

    • Implement the suggested code to enhance your project.

Example

In this example, we request to open a CSV file, retrieve the columns, and then plot the data.

Prompt:

# Your task is to open the file located at '../datasets/data_test.csv', read the data, identify the columns, and then create a meaningful chart to visualize it
CodeGPT: Code Interpreter