Start coding with Copilot’s help
With GitHub Copilot installed, you’re ready to start coding your regression problem in Python. The approach of using suggestions in an open file is a bit different from using the chat window. The main difference is that we will rely on typing comments and use the Tab key to get Copilot to provide us with suggestions. This technique works equally well in Jupyter Notebook and normal text files. Here’s how it works:
# generate import statements for libraries to use with a Regression problem
Here, we have an open text file. We’ve added comments to generate import
statements. To get Copilot to generate a response, we need to use the Return key followed by the Tab key to accept the suggestion. Here’s how the above text file could change:
# generate import statements for libraries to use with a Regression problem
import pandas
import numpy
import scikit-learn
The import
statement is what is generated by...