Skip to main content

Package providing Jupyter AI magic commands in IPython

Project description

jupyter-ai-magic-commands

Magics are currently provided for Jupyter AI via the package jupyter-ai-magics (current version 2.31.6). This works with Jupyter AI v2 but will not work with the collection of extensions for v3 developed in https://github.com/jupyter-ai-contrib, which use litellm via the https://github.com/jupyter-ai-contrib/jupyter-ai-litellm repository. Therefore, we introduce an updated magics package, titled jupyter_ai_magic_commands (v0.0.1) for use with Jupyter AI v3.

Installation

Create the environment:

conda create -n v3 python=3.13 nodejs=20
conda activate v3

To install basic Jupyter AI from scratch using the package collection in https://github.com/jupyter-ai-contrib:

pip install jupyter-ai-router jupyter-ai-persona-manager jupyter-ai-jupyternaut

git clone https://github.com/srdas/jupyter-ai-magic-commands.git
cd jupyter-ai-magic-commands
git switch first_magic
cd ..
pip install -e jupyter-ai-magic-commands

Test

To test the new package, try the code in the notebook (attached): magics_litellm.ipynb

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

jupyter_ai_magic_commands-0.0.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_ai_magic_commands-0.0.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_ai_magic_commands-0.0.1.tar.gz.

File metadata

File hashes

Hashes for jupyter_ai_magic_commands-0.0.1.tar.gz
Algorithm Hash digest
SHA256 608f8c1381cc270159a45a363bf7ec30e8e2f1f20c403cd88d9044fd0c8d61c3
MD5 b3780f82b990f8d2f704c5b53421d138
BLAKE2b-256 007f018ec6fd085f4de04ad1cb5ed2cfc278e15a8516a7d0f95801c1b8dc0da7

See more details on using hashes here.

File details

Details for the file jupyter_ai_magic_commands-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_ai_magic_commands-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fc1551667283abca3d6ae5e664f75404df0f838becf7848c9c66bcd59feb359
MD5 983fff5dcad9ca43594bfa32ecc6993a
BLAKE2b-256 3c3c2a3c557423609be3488c59f99ed3062c2e78aabcbbd8e209eeb396074a99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page