From the course: Python: Recursion

Working with GitHub Codespaces - Python Tutorial

From the course: Python: Recursion

Working with GitHub Codespaces

- [Instructor] If you want to follow along with this course without worrying about setting up a local development environment and downloading the repository, then you might want to use GitHub Codespaces. I'm going to show you how to do this now. So first of all, go to the URL for the repository for this course, and then find the green Code button and click it. And you'll see there's two tabs. There's a Local tab and there's a Codespaces tab. Now you want to click the "Create codespace on main" button. This will create a Codespace on the main branch of this repository. It will take a couple of minutes to complete. Once it's completed, you'll see that you have a VS Code environment to work with. The first thing you want to do now is to go to the Extensions button, click on that and search for Python. This will bring up the Python extension. You want to click on that and install it. Now, you can click on the project view to see your folders and files. Notice at the bottom here, we have a button for the different branches in the repository. If we click on this, we'll see a list of all the branches, or we can search. So for example, if I want branch 03, let's say branch 03_01, you'll see here there's actually two branches here. We've got one ending in "b", this represents the state of the code at the beginning of this video, and the one with "e" at the end represents the state at the end of the video. So let's check out 03_01b. And then in our folder for 03_01, this will be the state of the code at the start of that video. If you're not used to working with VS Code, then it may take a little bit of time to get used to the environment, but it's a very powerful, very intuitive environment, and this could be a very good way to go, like I say, if you don't want to download the repository and work locally.

Contents