Jupyterlab code snippet management tool powered by AI.
Project description
jupyter-pieces
Pieces for Developers is a code snippet management tool powered by AI.
Elevate Your Jupyter Experience with Pieces
Your Guide to Getting Started with Pieces for Developers Jupyter Extension
1. Save your first snippet
- To save a snippet, highlight the text, right-click, and select "Save to Pieces."
Additional ways to save
- Click the Pieces Save button within any code block.
2. Find & use your snippets
-
To access your saved snippets, click on the Pieces icon in your left sidebar.
3. Share your Snippets
- Collaborate with others with ease using shareable links for your snippets
4. Copilot
- Ask questions about your notebook, generate code relevant to what you are working on, and more with the Pieces Copilot
- Suggested queries are automatically generated for your ease of use
- Choose between Local and Cloud LLM runtimes (i.e Llama2, GPT)
- Quickly link to relevant notebooks
Maximize productivity with our Flagship Desktop App
Utilize the Pieces Flagship Desktop App in combination with our Jupyter Plugin to streamline your workflow and enhance your development productivity.
- Get back in flow with our Workflow Activity View
- Save time with In-Project Snippet Discovery
- Enjoy real-time and scope-relevant suggestions
- Extract and use code and text from screenshots
Requirements
- JupyterLab >= 4.0.0
Install
To install the extension, execute:
pip install jupyter-pieces
Uninstall
To remove the extension, execute:
pip uninstall jupyter-pieces
Contributing
Development install
Note: You will need NodeJS to build the extension package.
The jlpm
command is JupyterLab's pinned version of
yarn that is installed with JupyterLab. You may use
yarn
or npm
in lieu of jlpm
below.
Create and activate your conda environment:
conda create -n jupyterlab-ext --override-channels --strict-channel-priority -c conda-forge -c nodefaults jupyterlab=4 nodejs=18 git copier=8 jinja2-time
conda activate jupyterlab-ext
Then:
# Clone the repo to your local environment
# Change directory to the jupyter-pieces directory
# Install package in development mode
pip install -e "."
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm build
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
By default, the jlpm build
command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
jupyter lab build --minimize=False
Development uninstall
pip uninstall jupyter-pieces
In development mode, you will also need to remove the symlink created by jupyter labextension develop
command. To find its location, you can run jupyter labextension list
to figure out where the labextensions
folder is located. Then you can remove the symlink named jupyter-pieces
within that folder.
Packaging the extension
See RELEASE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jupyter_pieces-1.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf67e173fac1d2c753937d70c7a58cfeefdc31e3ff7695a60fdc75197fb7713 |
|
MD5 | bcb5295e78cf095b5516ef0612737edc |
|
BLAKE2b-256 | 4226e819b085fc61759a0b82d7e5da271270c492be97b945bce1f97e07a4cf93 |