Skip to main content

No project description provided

Project description

jupyter_ai_tools

Github Actions Status

jupyter_ai_tools is a Jupyter Server extension that exposes a collection of powerful, agent-friendly tools for interacting with notebooks and Git repositories. It is designed for use by AI personas (like those in Jupyter AI) to programmatically modify notebooks, manage code cells, and interact with version control systems.


✨ Features

This extension provides runtime-discoverable tools compatible with OpenAI-style function calling or MCP tool schemas. These tools can be invoked by agents to:

🧠 YNotebook Tools

  • read_cell: Return the full content of a cell by index
  • read_notebook: Return all cells as a JSON-formatted list
  • add_cell: Insert a blank cell at a specific index
  • delete_cell: Remove a cell and return its contents
  • write_to_cell: Overwrite the content of a cell with new source
  • get_max_cell_index: Return the last valid cell index

🌀 Git Tools

  • git_clone: Clone a Git repo into a given path
  • git_status: Get the working tree status
  • git_log: View recent commit history
  • git_add: Stage files (individually or all)
  • git_commit: Commit staged changes with a message
  • git_push: Push local changes to a remote branch
  • git_pull: Pull remote updates
  • git_get_repo_root_from_notebookpath: Find the Git root from a notebook path

These tools are ideal for agents that assist users with code editing, version control, or dynamic notebook interaction.


Requirements

  • Jupyter Server

Install

To install the extension, execute:

pip install jupyter_ai_tools

Uninstall

To remove the extension, execute:

pip uninstall jupyter_ai_tools

Troubleshoot

If you are seeing the frontend extension, but it is not working, check that the server extension is enabled:

jupyter server extension list

Contributing

Development install

# Clone the repo to your local environment
# Change directory to the jupyter_ai_tools directory
# Install package in development mode - will automatically enable
# The server extension.
pip install -e .

You can watch the source directory and run your Jupyter Server-based application at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension. For example, when running JupyterLab:

jupyter lab --autoreload

If your extension does not depend a particular frontend, you can run the server directly:

jupyter server --autoreload

Running Tests

Install dependencies:

pip install -e ".[test]"

Development uninstall

pip uninstall jupyter_ai_tools

Packaging the extension

See RELEASE

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_tools-0.2.0.tar.gz (14.6 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_tools-0.2.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file jupyter_ai_tools-0.2.0.tar.gz.

File metadata

  • Download URL: jupyter_ai_tools-0.2.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for jupyter_ai_tools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ed232a5c34ccc5432db1b37ee78bdbbfd65c56cc86bbab8f07a8f56ff1248491
MD5 f11ee6a450c0738d22215a3a930c5ef4
BLAKE2b-256 2fd4b6e0f04221101e7850cb1c95deb553d912d0d045d6d275e0a78d7bc95fe2

See more details on using hashes here.

File details

Details for the file jupyter_ai_tools-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_ai_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bfaeab9476fe1dea22e19f666a4cb12376451755057924ebd5e2a7bcd11eff2
MD5 6dcea0e5a9757b7b794011b840309e11
BLAKE2b-256 be3038575ff405bf5442bb0b18247ffcd1e4564e528f02b1cad2cb310250ee88

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