Copilot commands
If you start typing /
in the chat window, you will see a list of commands that you can use with Copilot.
Figure 20.3: Available commands
There are quite a few available commands, and we will focus on a few of them in this chapter.
Creating a Notebook
With this command, you can create a new notebook. A notebook is a place where you can store code snippets and text. To create a notebook, type in /newNotebook
, and also provide a name for the notebook, for example, products
.
Figure 20.4: Creating a Notebook
The above image shows what’s displayed when you type the /newNotebook
command; you’re asked to confirm the scaffolding of a notebook by clicking Create Notebook.
This will create a new notebook with commonly used code snippets for products
. Let’s inspect the output next.
Your notebook, at a high level, contains the following:
- import, which contains all the imports needed to work with a dataset...