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 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~=3.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 Get Started.
-
From the pop-up window, choose Copy Code and Proceed.
-
On the Get started page, sign in or sign up for a Builder ID using your email address or Google account. For more information, see Getting started with a personal account (Builder ID).
If you already have a Builder ID, skip to the step about the Authorize request page.
-
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.
