Code
from IPython.display import YouTubeVideo
= ["h1sAzPojKMg","E9U-EBG8jVk", "zulGMYg0v6U"]
tutorial_ids for tutorial in tutorial_ids:
display(YouTubeVideo(tutorial))
Windows/Mac/Linux: - Navigate to the VS Code download page. - Choose your operating system and download the installer. - Follow the on-screen instructions to install VS Code.
After installation, launch VS Code. We’ll need the Python extension to work with Python in VS Code:
Assuming you’ve already installed Anaconda:
Windows/Mac/Linux: - Press Ctrl+Shift+P
(or Cmd+Shift+P
on Mac) to open the command palette. - Type Python: Select Interpreter
. - From the dropdown, choose the conda environment corresponding to your course.
Since you’ll be working with Jupyter notebooks:
Once installed, you can clone repositories, manage pull requests, and even review code right within VS Code. You will need to sign in to your GitHub account when prompted.
Here are some other extensions that might be helpful (later in the course):
There are tons of great extensions and they are easy to add and remove, so feel free to explore and experiment!
With the environment activated, you can launch VSCode from the command line:
code .
Alternatively, you can launch VSCode from the Windows Start Menu or MacOS Applications folder, or however you normally launch applications on your machine.
Once VSCode is open, you can open a new Python file. Ensure you select the “Python (eds217_2023)” kernel for your file. VSCode will prompt you to install the ipykernel
package if it is not already installed. In addition, VSCode will remember the kernel you selected for each file, so you will only need to select the kernel once for each file.
eds217_2023
Environment in VSCodeeds217_2023
environment on your machine.eds217_2023
Directory in VSCode:Launch VSCode, then go to File
> Open Folder
(or File
> Open
on MacOS) and select the eds217_2023
directory that you cloned from GitHub.
Once the folder is open in VSCode:
eds217_2023
environment. It should look something like this: Python (eds217_2023)
.eds217_2023
environment.If you’re working with Jupyter notebooks in VSCode:
.ipynb
file).Python (eds217_2023)
. If not, click on it and select Python (eds217_2023)
from the dropdown list.If you don’t see the eds217_2023
environment in the list of available interpreters or kernels:
Ensure you’ve activated the environment in your terminal and installed the Jupyter kernel as described in the previous instructions.
Restart VSCode.
There are a ton of great tutorials that can help you make the most of VSode. Here are some of our favorites:
from IPython.display import YouTubeVideo
= ["h1sAzPojKMg","E9U-EBG8jVk", "zulGMYg0v6U"]
tutorial_ids for tutorial in tutorial_ids:
display(YouTubeVideo(tutorial))