Quickstart
In this tutorial, you'll learn how to set up and start using the Pieces for JupyterLab Extension. We'll cover the installation process and basic usage to help you get up and running quickly.

Prerequisites
In order to use the Pieces JupyterLab Extension, you must have Pieces OS. We also recommend downloading the Pieces for Developers Desktop App.
- Pieces OS installed on your machine.
- Python installed on your machine.
- JupyterLab installed on your machine.
Steps
Step 1: Install the Pieces JupyterLab Extension in your current environment
-
Make sure JupyterLab is running:
jupyter lab
-
Install the extension:
-
If you want to use the JupyterLab UI to install, select the Extension Manager, search for
Pieces
, then select Install for thejupyter-pieces
extension. -
You can also run the following command from a console or a notebook:
pip install jupyter-pieces
-
-
Once installed, refresh the page in your browser.
Step 2: Use the Pieces JupyterLab Extension
-
Either create a new notebook and add code to a cell, or open an existing notebook that contains code cells.
-
Use the embedded Pieces button to save the contents of this cell to Pieces.
-
View the saved snippet by selecting the Pieces View from the Ribbon Menu.
-
From your code cell, select all the code, right click and select Ask Pieces about your selection.
-
Ask Pieces to
explain this code
. You will see an explanation of your code in the Copilot chat pane of the Pieces View.
Congratulations! You have successfully set up and started using the Pieces for JupyterLab Extension.
Next Steps
Explore more features to streamline your workflow and boost productivity.