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
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
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
llm_jupyter-0.0.2.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for llm_jupyter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0873c63808969b975ed8d98b88de6f3cb308f1200d67071496290dc1517e16 |
|
MD5 | a2785ed66c58f6c1eabb4e26f321cd48 |
|
BLAKE2b-256 | 122ab8a1c89f9a9ef2a5c3d6d7bc79e432e136bbf1ab38b8a2bdbdaded2d230b |