This plugin uses the OpenAI API's GPT-4 turbo model to generate explanations for Python code in PyCharm Community Edition.
(assuming you already cloned the repo)
- Open this repo in IntelliJ IDEA
- Run the Gradle task "Run Plugin". This will open a sandboxes, fresh PyCharm instance with the plugin installed
- Set the environment variable OPENAI_API_KEY to your OpenAI API Key
- Select anywhere inside the method you wish to explain
- Right click, then click "Show Context Actions", followed by "Explain code with OpenAI GPT-4"
- Wait, and the explanation will appear in a popup!