Skip to main content

Features

Pieces Copilot

The Pieces Copilot is available using the Pieces View from the Ribbon Menu, and selecting the bot logo on the top slider to switch to the copilot. From here you can interact with the Pieces Copilot and receive answers that are specific to your notebooks.

This has a familiar chat experience spread across all your favorite tools. The Copilot chat window has the same familiar features integrated into multiple tools: VS Code, JetBrains, Visual Studio, your browser, Obsidian, and more.

Enrich Selected Code

Select any text within a code cell in your notebook, right-click and select Enrich Selection via Pieces. The Pieces Copilot will add a helpful comment at the top describing your code.

Ask Pieces

Select any text within a code cell, right-click and select Ask Pieces about your Selection. In the dialog that appears, ask a question about the code. A new Copilot chat wil be started providing an answer to the question you asked.

Snippets

Save your Snippets

To save a snippet, do one of the following:

  • Highlight the text, right-click, and select Save to Pieces.
  • Click the Pieces button within any code block.
  • Highlight the desired code and use the keyboard shortcut <Ctrl>+<Shift>+<S>. -. Use the keyboard shortcut <Ctrl>+<Shift>+<Enter> to save the entire currently active cell.

Example of saving an active cell as a snippet

Save your Snippets using the embedded Pieces Button

Pieces adds an embedded Pieces button into your code cells to quickly save the contents as a snippet.

Example of saving an active cell using the embedded buttons

Find your Snippets

Open the Pieces View from the Ribbon Menu.

  • Sort by recent or by language
  • Search your snippets to save time manually looking through your files.

Example of searching for and inserting snippets

Use your Snippets

  • Copy and share your snippets from the Pieces View
  • You can expand your code snippets to view automatically generated metadata
  • View your snippets with syntax highlighting

Example of viewing all context related to snippet in expanded view

Share your Snippets

To share a snippet, do one of the following:

  • Highlight the text, right-click, and select Share via Pieces Link.
  • Click the Pieces Share button within any code block/in the Pieces View.
  • Highlight the desired code and use the keyboard shortcut <Ctrl>+<Shift>+<K>.
  • Use the keyboard shortcut <Ctrl>+<Shift>+<X> to share the entire currently active cell.

Example of generating a shareable link for a snippet

Pieces stores all of your snippets for seamless sharing. Once a snippet is shared, a link is created and copied to the clipboard.

Discover Snippets

Pieces can discover and save snippets from your projects. To discover snippets, do one of the following:

  • From the Pieces View, ensure the snippet pane is selected, then drop down the grouping box and select Discover
  • Use the keyboard shortcut <Ctrl>+<Shift>+<A>

Example of discovered snippets in Jupyter Lab

Customize the Pieces settings

To customize your Pieces for JupyterLab Extension settings, visit the Settings Editor from the Settings menu and then select Pieces Settings.

You can adjust the following settings:

  1. Auto-open Pieces list view on snippet save
  2. Cloud capabilities
  3. Pieces server port