jupyterlite-ai-kernels
AI kernels for JupyterLite. This extension dynamically registers one kernel per configured AI provider from @jupyterlite/ai. When users open a notebook with one of these kernels, cell contents are sent as prompts to the AI model and responses are streamed back.
https://github.com/user-attachments/assets/ee5bc8b1-c0bd-4603-b2f4-a98db350d217
Requirements
- JupyterLite >= 0.6.0
@jupyterlite/ai>= 0.10.0
Install
To install the extension, execute:
pip install jupyterlite-ai-kernels
Then build your JupyterLite site:
jupyter lite build
Uninstall
To remove the extension, execute:
pip uninstall jupyterlite-ai-kernels
Contributing
Development install
Note: You will need NodeJS to build the extension package.
This project uses pnpm as the package manager.
# Clone the repo to your local environment
# Change directory to the jupyterlite-ai-kernels directory
# Install package in development mode
python -m pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
pnpm run 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
pnpm run 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).
Development uninstall
pip uninstall jupyterlite-ai-kernels
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 jupyterlite-ai-kernels within that folder.
Packaging the extension
See RELEASE
Metadata
Release files for jupyterlite-ai-kernels 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyterlite_ai_kernels-0.1.1.tar.gz | 206.8 kB | Without provenance | Details for jupyterlite_ai_kernels-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyterlite_ai_kernels-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for jupyterlite_ai_kernels-0.1.1-py3-none-any.whl |
Total release size: 227.8 kB
Release files / jupyterlite_ai_kernels-0.1.1.tar.gz
| Download URL | jupyterlite_ai_kernels-0.1.1.tar.gz |
|---|---|
| Size | 206.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a49dff7a9f97baac740fcbc9d7027dab158a52a7ac77b4fb6b2fe5b3f35aa10
|
|
BLAKE2b-256 checksum How to use checksums |
057fce1769a447ac49167d984177e285e944ef667b09c85b3381cf48f3fbd0e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / jupyterlite_ai_kernels-0.1.1-py3-none-any.whl
| Download URL | jupyterlite_ai_kernels-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2876fb7249f8b189855cb05a9cc3ff098e57702dc498fb3d227fe3567eead344
|
|
BLAKE2b-256 checksum How to use checksums |
1276b1bba46382119892474f68c858dd9650187fac13704abeda17c1e7b2a530
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for jupyterlite-ai-kernels 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.