Using Amazon Q Developer with JupyterLab
This page describes how to set up and activate Amazon Q Developer for JupyterLab. Once activated, Amazon Q can make code recommendations automatically as you write your code.
Note
Python is the only programming language that Amazon Q supports in JupyterLab.
Installing JupyterLab
Install JupyterLab
pip show jupyterlab
Note the version in the response, and follow the use the corresponding directions in one of the following sections.
Installation using pip for Jupyter Lab version >= 4.0
You can install and enable the Amazon Q extension for JupyterLab 4 with the following commands.
# JupyterLab 4 pip install amazon-q-developer-jupyterlab-ext
Installation using pip for Jupyter Lab version >= 3.6 and < 4.0
You can install and enable the Amazon Q extension for JupyterLab 3 with the following commands.
# JupyterLab 3 pip install amazon-q-developer-jupyterlab-ext~=1.0 jupyter server extension enable amazon-q-developer-jupyterlab-ext
Authenticating with AWS Builder ID
In the following procedure, you will set up Builder ID, which you will use to authenticate when you enable Amazon Q.
-
Refresh the browser tab on which you are using JupyterLab.
-
From the Amazon Q panel at the bottom of the window, choose Start Amazon Q.
-
From the pop-up window, choose Copy Code and Proceed.
-
On the Create AWS Builder ID page, if you don't have a Builder ID, enter a personal email address and choose Next.
If you already have a Builder ID, skip to the step about the Authorize request page.
-
On the next Create your AWS Builder ID page, enter a name and choose Next.
-
After you receive your email verification code, enter it in the blank field and choose Verify.
-
On the next screen, choose and confirm a password, then choose Create AWS Builder ID
-
On the next page choose Allow to allow Amazon Q to access your data.
Now you should be logged into Amazon Q in JupyterLab with Builder ID.
To begin coding, see Using shortcut keys.