Run a IPython interpreter in the LLM virtual environment
Project description
llm-jupyter
Run a IPython interpreter in the LLM virtual environment
Installation
Install this plugin in the same environment as LLM.
llm install llm-jupyter
Usage
IPython
This plugin adds a new ipython command to LLM. This executes IPython in the same virtual environment as LLM itself.
You can use this to check the Python version
llm ipython --version
# Should output '8.20.0' or similar
Or to start a IPython shell. In that shell you can import llm and use it to interact with models:
llm ipython
In [1]: !llm 'Who are you?'
# Output: I am an AI digital assistant here to help you with any questions or tasks you may have. How can I assist you today?
Notebook
This plugin also adds a new notebook command to LLM. This executes a Jupyter Notebook in the same virtual environment as LLM itself.
llm notebook
!llm 'Who are you?'
# Output: I am an AI digital assistant here to help you with any questions or tasks you may have. How can I assist you today?
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
git clone git@github.com:lucasrcezimbra/llm-jupyter.git
cd llm-jupyter
python -m venv .venv
source .venv/bin/activate
pip install -e .[test]
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
pytest
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_jupyter-0.1.0.tar.gz.
File metadata
- Download URL: llm_jupyter-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7882710a9b8cb397e0598762a4d05d9ea375cedca3d9601ff871eb5d484871d5
|
|
| MD5 |
c6f91daedc7cd19bd0551acf0a871559
|
|
| BLAKE2b-256 |
b6537145c6cc3ea6aa3c59256c38b72ec21458ef79775203fccf9e2d09b65b3f
|
File details
Details for the file llm_jupyter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_jupyter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b129a5589bd8744013a1227803af71ef56edf3acab482d8fbdadcf3fbecce0b6
|
|
| MD5 |
294a5a1f69262d86ac175e6b76f6f8cc
|
|
| BLAKE2b-256 |
8bccd7c395e07d2ec1082ea84af9364cd31266826be563754801e5c3633e9623
|