Copilots
Welcome to the world of AI-driven development copilots powered by OpenAI and available in Visual Studio.
GitHub Copilot
Let’s begin with GitHub Copilot:
https://github.com/github/copilot-docs
In this section, we will use GitHub Copilot with PyCharm (JetBrains):
https://github.com/github/copilot-docs/tree/main/docs/jetbrains
Follow the instructions in the documentation to install JetBrains and activate OpenAI GitHub Copilot in PyCharm.
Working withGitHub Copilot is a four-step process (see Figure 16.7):
- OpenAI Codex is trained on public code and text on the internet.
- The trained model is plugged into the GitHub Copilot service.
- The GitHub service manages back-and-forth flows between code we write in an editor (in this case PyCharm) and OpenAI Codex. The GitHub Service Manager makes suggestions and then sends the interactions back for improvement.
- The code editor is our development workspace.
Figure...