From the course: Enhancing Your Productivity as a Data Scientist with Generative AI

Codespaces and setup

- [Instructor] Okay, so let's find out how we can use Codespaces in this course. Whenever we are not working in ChatGPT, but instead build a co-pilot that is more integrated in our data science workflow, I'll be using a Jupyter Notebook for this, and the easiest way to run these notebooks is using GitHub Codespaces because these will automatically pre-install the necessary libraries and also get you up to speed quickly. So here's how that works. Open our repo and then make sure you're on the main branch. Click on code, and then next to Codespaces, click on this little plus icon here. This will create a new Codespace for you, which might take a few minutes to load the first time you're doing this, and you just have to do it once for the whole course. If you create this Codespace from the original repo, this Codespace will be hosted by LinkedIn, and you're not going to be charged for this. Using this little menu icon on the bottom, you can switch between different branches. Every branch belongs to a particular video for this course. For example, this branch belongs to the fifth video in the second chapter. If there's a B or an E at the end of the branch name, this indicates that this is a state of the beginning or end of a given video. It'll generally include the notebook that I ran with all the outputs still stored. Now for demo purposes, let's switch to branch 05, and in this branch, let's open this notebook here. If you run the first cell, you will see that we are asked to connect to a Python environment. So just select Python environments and then select this environment here. Now this will run your first code cell. You can now go ahead and edit and run this notebook as you like. Once you're done, you can simply close this window. The Codespace will be automatically stopped after a while, but the data will be saved. You can simply restart the Codespace by going to GitHub, opening the menu item on the left, selecting Codespaces, and there you'll find the Codespace that you've just created. If you click this Codespace, it'll just open with the last date you exited. So this is how you can use Codespaces throughout this course.

Contents