Exercise - Prepare the project
You'll be working with a Python project that shows a dashboard of products. To run this project in a container, you'll need the Dev Containers extension for Visual Studio Code.
In this exercise, you'll clone one of the agency's projects—a Products Dashboard written in Python—and install the Dev Containers extension for Visual Studio Code.
Clone the sample repo
Ensure that Docker Desktop is installed and running on your machine.
Copy the URL for the sample repo to your clipboard.
https://github.com/MicrosoftDocs/mslearn-python-products
Open a new instance of Visual Studio Code.
Select the Clone Repository button in the sidebar, or press F1 to open the Command Palette and search for Git: Clone.
Paste in the URL from your clipboard.
Select a location on your disk where the project can be cloned to.
Select Open from the notification in Visual Studio Code.
If you see a pop-up that asks if you trust the authors, select Yes, I trust the authors.
The project should now be open in Visual Studio Code.
Note
If you receive a warning in Visual Studio Code about selecting a Python interpreter, you can safely ignore it.
Install the Dev Containers extension
Select the "Extensions" icon in the Activity Bar to open the Extensions viewlet.
Type dev containers.
Locate the Dev Containers extension and select the Install button.
The Dev Containers extension will install, and you'll have access to the commands that it adds to Visual Studio Code.