ipy-llm-kernel
ipy-llm-kernel is a Jupyter kernel that allows you to type in English language and receive responses from a large language model (LLM).
It can make use of OpenAI's chatGPT, Anthropic's Claude, Helmholtz' blablador and Ollama. You need an OpenAI API, Anthropic, Google or a Helmholtz account to use it. Using it with Ollama is free but requires running an Ollama server locally.
Usage
After starting jupyter lab, select the LLM Kernel.
You can then type in English language and receive responses from the LLM as demonstrated above
Generating images
If your prompt asks for generating images, it may generate this image for you. At the moment, only OpenAI/Dall-E3 is supported for this. You need an OpenAI API Key for this.
Installation
First, you should also create an environment variable named "IPY_LLM_KERNEL_MODEL" and enter a model name depending on which service provider you want to use. Examples:
llama3:8bblablador:alias:largeclaude-3-5-sonnet-20240620gpt-4o-2024-08-06
Then, start a new terminal to install ipy-llm-kernel using pip. It is recommended to install it into via conda/mamba environment. If you have never used conda before, please read this guide first.
pip install ipy-llm-kernel
Afterwards, run additionally this command:
python -m ipy_llm_kernel install
You can check if it's installed by printing out the list of installed kernels:
jupyter kernelspec list
And you can uninstall them using this command:
jupyter kernelspec uninstall llm-kernel
Development
If you want to contribute to ipy-llm-kernel, you can install it in development mode like this:
git clone https://github.com/haesleinhuepf/ipy-llm-kernel.git
cd ipy-llm-kernel
pip install -e .
Similar projects
There are similar projects:
Issues
If you encounter any problems or want to provide feedback or suggestions, please create an issue along with a detailed description and tag @haesleinhuepf .
Metadata
Release files for ipy-llm-kernel 0.2.0
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 |
|---|---|---|---|---|
| ipy_llm_kernel-0.2.0.tar.gz | 9.3 kB | Without provenance | Details for ipy_llm_kernel-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipy_llm_kernel-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ipy_llm_kernel-0.2.0-py3-none-any.whl |
Total release size: 17.2 kB
Release files / ipy_llm_kernel-0.2.0.tar.gz
| Download URL | ipy_llm_kernel-0.2.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b86c7d846f62f6b203a69d9fb4eb4358714ec3d8485e8bc0464ca2058191d9a
|
|
BLAKE2b-256 checksum How to use checksums |
f287f284b28959a27cf372758b48d947fa1c6b2da011e21824f4eadc63d312f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / ipy_llm_kernel-0.2.0-py3-none-any.whl
| Download URL | ipy_llm_kernel-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b82046f2adfbfa0387cfa665f8404e47496d52247c0bfd6a6a6cc7cd18efbe52
|
|
BLAKE2b-256 checksum How to use checksums |
642ca7c396d6ba01746ab8392cc2b070902811ab7a5272a536929d775a02bd77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for ipy-llm-kernel 0.2.0
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.