From the course: Testing Python Data Science Code

Setting up

- [Instructor] Let's get you set up. You will need Python 3.9 or above. You can grab it from Python.org, or from the Anaconda Distribution. You will also need an IDE to write the code inside. I'm going to use Visual Studio Code that comes free. And inside Visual Studio Code, install the Python extension. Once you're set up, grab the exercise files from our GitHub repository. Open them in a directory on your machine. We are going to use several external packages, such as pytest, that does not come installed with Python. The list of these requirements is in the requirements.txt file. There is also a script called create env, which you can run, and it will create a virtual environment with all the dependencies installed. Once you have that set up, you need to tell Visual Studio Code to use that Python. To do that, go to View and then Command Palette, and click on Python Select Interpreter, and select the one from the virtual environment. And then you should be ready to go.

Contents