Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,6 @@ __marimo__/

# Streamlit
.streamlit/secrets.toml

# Auto-generated _version.py module
jupyter_ai_magic_commands/_version.py
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

<!-- <START NEW CHANGELOG ENTRY> -->

<!-- <END NEW CHANGELOG ENTRY> -->

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @jupyter-ai-contrib/jupyter-ai-magic-commands
# jupyter-ai-magic-commands

Magics are currently provided for Jupyter AI via the package `jupyter-ai-magics` ([current version 2.31.6](https://pypi.org/project/jupyter-ai-magics)). 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.

Expand Down
4 changes: 2 additions & 2 deletions jupyter_ai_magic_commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

from typing import TYPE_CHECKING

from ._version import __version__

if TYPE_CHECKING:
from IPython.core.interactiveshell import InteractiveShell


__version__ = '0.0.0'

def load_ipython_extension(ipython: InteractiveShell):
from .exception import store_exception
from .magics import AiMagics
Expand Down
4 changes: 0 additions & 4 deletions jupyter_ai_magic_commands/_version.py

This file was deleted.

25 changes: 0 additions & 25 deletions package.json

This file was deleted.

20 changes: 11 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[build-system]
requires = ["hatchling>=1.4.0", "hatch-nodejs-version"]
requires = ["hatchling>=1.4.0"]
build-backend = "hatchling.build"

[project]
name = "jupyter_ai_magic_commands"
readme = "README.md"
description = "Package providing Jupyter AI magic commands in IPython"
authors = [{ name = "Project Jupyter", email = "jupyter@googlegroups.com" }]
keywords = ["ipython", "ai", "magic-commands"]
license = { file = "LICENSE" }
requires-python = ">=3.9"
classifiers = [
Expand All @@ -18,7 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
]

dynamic = ["version", "description", "authors", "urls", "keywords"]
dynamic = ["version"]

dependencies = [
"ipython",
Expand All @@ -28,6 +31,11 @@ dependencies = [
"click>=8.1.0,<9",
]

[project.urls]
Documentation = "https://jupyter-ai.readthedocs.io/en/v3/"
Source = "https://github.com/jupyter-ai-contrib/jupyter-ai-magic-commands"
Tracker = "https://github.com/jupyter-ai-contrib/jupyter-ai-magic-commands/issues"

[project.optional-dependencies]
dev = [
# used to run our linters and formatters locally
Expand All @@ -45,10 +53,4 @@ all = [
]

[tool.hatch.version]
source = "nodejs"

[tool.hatch.metadata.hooks.nodejs]
fields = ["description", "authors", "urls"]

[tool.hatch.build.hooks.version]
path = "jupyter_ai_magic_commands/_version.py"
path = "jupyter_ai_magic_commands/__init__.py"