appendix B Python development environment

 

While this book assumes readers are experienced Python developers, this could mean many different things. In this appendix, we look at configuring a Python development environment that will function with the code examples in this book. You can use other integrated development environments (IDEs), but not all tooling, especially extensions, will work in all IDEs.

B.1 Downloading the source code

To download and run the source code, install Git, and then pull the repository locally. Here are the high-level steps to pull the code from the book’s GitHub repository:

  1. Install Git if you need to. Git can be installed from multiple sources, but a good option is the main release, found here: https://git-scm.com/downloads. Follow the instructions to download and install the tool for your operating system.
  2. Open a terminal in a folder you want to download the source to, and then enter the following command:
git clone https://github.com/cxbxmxcx/GPT-Agents.git
  1. After the code is downloaded, you can begin by opening the chapter folder that you’re working on in Visual Studio Code (VS Code). If you need to install VS Code or understand how to load a chapter folder as a workspace, consult section B.5 in this appendix.

B.2 Installing Python

B.3 Installing VS Code

B.4 Installing VS Code Python extensions

B.5 Creating a new Python environment with VS Code

B.6 Using VS Code Dev Containers (Docker)