Skip to content

Commit db7e4f8

Browse files
authored
refactor: ai-agents (#12)
* refactor: ai-agents * docs: ai-agents * docs: fix * docs: fix link
1 parent abec302 commit db7e4f8

29 files changed

+98
-98
lines changed

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
pip install build
3939
python -m build --sdist
4040
cp dist/*.tar.gz my_server_extension.tar.gz
41-
pip uninstall -y "jupyter_ai_agent"
42-
rm -rf "jupyter_ai_agent"
41+
pip uninstall -y "jupyter_ai_agents"
42+
rm -rf "jupyter_ai_agents"
4343
4444
- uses: actions/upload-artifact@v4
4545
if: startsWith(matrix.os, 'ubuntu')
@@ -84,8 +84,8 @@ jobs:
8484
- name: Install and Test
8585
run: |
8686
pip install my_server_extension.tar.gz
87-
pip list 2>&1 | grep -ie "jupyter_ai_agent"
88-
python -c "import jupyter_ai_agent"
87+
pip list 2>&1 | grep -ie "jupyter_ai_agents"
88+
python -c "import jupyter_ai_agents"
8989
9090
check_release:
9191
needs: test_sdist
@@ -104,5 +104,5 @@ jobs:
104104
- name: Upload Distributions
105105
uses: actions/upload-artifact@v4
106106
with:
107-
name: jupyter_ai_agent-releaser-dist-${{ github.run_number }}
107+
name: jupyter_ai_agents-releaser-dist-${{ github.run_number }}
108108
path: .jupyter_releaser_checkout/dist

README.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
[![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=1ABC9C)](https://github.com/sponsors/datalayer)
1010

11-
# 🪐 ✨ Jupyter AI Agent
11+
# 🪐 ✨ Jupyter AI Agents
1212

13-
[![Github Actions Status](https://github.com/datalayer/jupyter-ai-agent/workflows/Build/badge.svg)](https://github.com/datalayer/jupyter-ai-agent/actions/workflows/build.yml)
14-
[![PyPI - Version](https://img.shields.io/pypi/v/jupyter-ai-agent)](https://pypi.org/project/jupyter-ai-agent)
13+
[![Github Actions Status](https://github.com/datalayer/jupyter-ai-agents/workflows/Build/badge.svg)](https://github.com/datalayer/jupyter-ai-agents/actions/workflows/build.yml)
14+
[![PyPI - Version](https://img.shields.io/pypi/v/jupyter-ai-agents)](https://pypi.org/project/jupyter-ai-agents)
1515

16-
*Use Jupyter AI Agent, an AI Agent equipped with tools like 'execute', 'insert_cell', and more, to transform your Jupyter Notebooks into an intelligent, interactive workspace!*
16+
*The Jupyter AI Agents are equipped with tools like 'execute', 'insert_cell', and more, to transform your Jupyter Notebooks into an intelligent, interactive workspace!*
1717

18-
![Jupyter AI Agent](https://assets.datalayer.tech/jupyter-ai-agent/ai-agent-prompt-demo-terminal.gif)
18+
![Jupyter AI Agents](https://assets.datalayer.tech/jupyter-ai-agents/ai-agents-prompt-demo-terminal.gif)
1919

2020
```
21-
Jupyter AI Agent <-----------> JupyterLab
21+
Jupyter AI Agents <-----------> JupyterLab
2222
|
2323
| (RTC Real Time Collaboration)
2424
|
@@ -28,7 +28,7 @@ JNC + JKC
2828
- JKC https://github.com/datalayer/jupyter-kernel-client
2929
```
3030

31-
Jupyter AI Agent empowers **AI** models to **interact** with and **modify Jupyter Notebooks**. The agent is equipped with tools such as adding code cells, inserting markdown cells, executing code, enabling it to modify the notebook comprehensively based on user instructions or by reacting to notebook and kernel events.
31+
Jupyter AI Agents empowers **AI** models to **interact** with and **modify Jupyter Notebooks**. The agent is equipped with tools such as adding code cells, inserting markdown cells, executing code, enabling it to modify the notebook comprehensively based on user instructions or by reacting to notebook and kernel events.
3232

3333
This agent is **innovative** as it is designed to **operate on the entire notebook**, not just at the cell level, enabling more comprehensive and seamless modifications.
3434

@@ -43,25 +43,25 @@ This powerful functionality is made possible through [jupyter-nbmodel-client](ht
4343
4444
## Usage
4545

46-
This library is documented on https://jupyter-ai-agent.datalayer.tech.
46+
This library is documented on https://jupyter-ai-agents.datalayer.tech.
4747

4848
We put here a quick example for a Out-Kernel Stateless Agent helping your JupyterLab session.
4949

50-
To install Jupyter AI Agent, run the following command.
50+
To install Jupyter AI Agents, run the following command.
5151

5252
```bash
53-
pip install jupyter_ai_agent
53+
pip install jupyter_ai_agents
5454
```
5555

5656
Or clone this repository and install it from source.
5757

5858
```bash
59-
git clone https://github.com/datalayer/jupyter-ai-agent
60-
cd jupyter-ai-agent
59+
git clone https://github.com/datalayer/jupyter-ai-agents
60+
cd jupyter-ai-agents
6161
pip install -e .
6262
```
6363

64-
The Jupyter AI Agent can directly interact with JupyterLab and the modifications made by the Jupyter AI Agent can be seen in real-time thanks to [Jupyter Real Time Collaboration](https://jupyterlab.readthedocs.io/en/stable/user/rtc.html). Make sure you have JupyterLab installed with the Collaboration extension.
64+
The Jupyter AI Agents can directly interact with JupyterLab. The modifications made by the Jupyter AI Agents can be seen in real-time thanks to [Jupyter Real Time Collaboration](https://jupyterlab.readthedocs.io/en/stable/user/rtc.html). Make sure you have JupyterLab installed with the Collaboration extension.
6565

6666
```bash
6767
pip install jupyterlab jupyter-collaboration ipykernel
@@ -83,37 +83,37 @@ AZURE_OPENAI_API_KEY="..."
8383
EOF
8484
```
8585

86-
To use the Jupyter AI Agent, an easy way is to launch a CLI (update the Azure deployment name based on your setup).
86+
To use the Jupyter AI Agents, an easy way is to launch a CLI (update the Azure deployment name based on your setup).
8787

8888
```bash
8989
# Prompt agent example.
90-
jupyter-ai-agent prompt \
90+
jupyter-ai-agents prompt \
9191
--url http://localhost:8888 \
9292
--token MY_TOKEN \
9393
--azure-ai-deployment-name gpt-40-mini \
9494
--path test.ipynb \
9595
--input "Create a matplotlib example"
9696
```
9797

98-
![Jupyter AI Agent](https://assets.datalayer.tech/jupyter-ai-agent/ai-agent-prompt-demo-terminal.gif)
98+
![Jupyter AI Agents](https://assets.datalayer.tech/jupyter-ai-agents/ai-agents-prompt-demo-terminal.gif)
9999

100100
```bash
101101
# Explain Error agent example.
102-
jupyter-ai-agent explain-error \
102+
jupyter-ai-agents explain-error \
103103
--url http://localhost:8888 \
104104
--token MY_TOKEN \
105105
--azure-ai-deployment-name gpt-40-mini \
106106
--path test.ipynb
107107
```
108108

109-
![Jupyter AI Agent](https://assets.datalayer.tech/jupyter-ai-agent/ai-agent-explainerror-demo-terminal.gif)
109+
![Jupyter AI Agents](https://assets.datalayer.tech/jupyter-ai-agents/ai-agents-explainerror-demo-terminal.gif)
110110

111111
## Uninstall
112112

113113
To uninstall the agent, execute.
114114

115115
```bash
116-
pip uninstall jupyter_ai_agent
116+
pip uninstall jupyter_ai_agents
117117
```
118118

119119
## Contributing
@@ -122,7 +122,7 @@ pip uninstall jupyter_ai_agent
122122

123123
```bash
124124
# Clone the repo to your local environment
125-
# Change directory to the jupyter_ai_agent directory
125+
# Change directory to the jupyter_ai_agents directory
126126
# Install package in development mode - will automatically enable
127127
# The server extension.
128128
pip install -e ".[test,lint,typing]"
@@ -145,7 +145,7 @@ pytest
145145
### Development uninstall
146146

147147
```bash
148-
pip uninstall jupyter_ai_agent
148+
pip uninstall jupyter_ai_agents
149149
```
150150

151151
### Packaging the library

RELEASE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
~ BSD 3-Clause License
55
-->
66

7-
# Making a new release of jupyter_ai_agent
7+
# Making a new release of jupyter_ai_agents
88

99
The extension can be published to `PyPI` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
1010

docs/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ build: ## build
5454
publish: build ## publish
5555
($(CONDA_ACTIVATE) ${ENV_NAME}; \
5656
aws s3 rm \
57-
s3://datalayer-jupyter-ai-agent/ \
57+
s3://datalayer-jupyter-ai-agents/ \
5858
--recursive \
5959
--profile datalayer && \
6060
aws s3 cp \
6161
./build \
62-
s3://datalayer-jupyter-ai-agent/ \
62+
s3://datalayer-jupyter-ai-agents/ \
6363
--recursive \
6464
--profile datalayer && \
6565
aws cloudfront create-invalidation \
6666
--distribution-id E2U9KIMWUI2OHQ \
6767
--paths "/*" \
6868
--profile datalayer && \
69-
echo open ✨ https://jupyter-ai-agent.datalayer.tech )
69+
echo open ✨ https://jupyter-ai-agents.datalayer.tech )

docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
[![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=1ABC9C)](https://github.com/sponsors/datalayer)
1010

11-
# Jupyter AI Agent Docs
11+
# Jupyter AI Agents Docs
1212

13-
> Source code for the [Jupyter AI Agent Documentation](https://datalayer.io), built with [Docusaurus](https://docusaurus.io).
13+
> Source code for the [Jupyter AI Agents Documentation](https://datalayer.io), built with [Docusaurus](https://docusaurus.io).
1414
1515
```bash
1616
# Install the dependencies.

docs/docs/agents/explain_error/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ The Explain Error Agent explains an error encountered in a notebook. It leverage
55
- Error Explanation: Explain the error encountered in the code cell.
66
- Error Resolution: Provide potential solutions to resolve the error.
77

8-
![Jupyter AI Agent](https://assets.datalayer.tech/jupyter-ai-agent/ai-agent-explainerror-demo-terminal.gif)
8+
![Jupyter AI Agents](https://assets.datalayer.tech/jupyter-ai-agents/ai-agent-explainerror-demo-terminal.gif)
99

1010
```bash
11-
jupyter-ai-agent explain-error \
11+
jupyter-ai-agents explain-error \
1212
--url http://localhost:8888 \
1313
--token MY_TOKEN \
1414
--azure-ai-deployment-name gpt-40-mini \

docs/docs/agents/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import DocCardList from '@theme/DocCardList';
44

55
Make sure the you understand the [**Deployment Modes**](/docs/deployments) referring to where the agent is running, and the [**Interactions Modes**](/docs/interactions) referring to how the agent is used.
66

7-
Jupyter AI Agent currently provides the following agents.
7+
Jupyter AI Agents currently provides the following agents.
88

99
<DocCardList />
1010

1111
## Create your own Agent
1212

13-
More Jupyter AI Agent like `Code Refactor Agent`, `Documentation Agent`... can be created by extending the base class.
13+
More Jupyter AI Agents like `Code Refactor Agent`, `Documentation Agent`... can be created by extending the base class.
1414

1515
:::info
1616

docs/docs/agents/prompt/index.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ The Prompt Agent generates code cells based on natural language input. It levera
55
- Code Generation: Generate cells code based on natural language input.
66
- Notebook Modification: Add new cells based on existing one.
77

8-
![Jupyter AI Agent](https://assets.datalayer.tech/jupyter-ai-agent/ai-agent-prompt-demo-terminal.gif)
8+
![Jupyter AI Agents](https://assets.datalayer.tech/jupyter-ai-agents/ai-agent-prompt-demo-terminal.gif)
99

10-
To use the Jupyter AI Agent, an easy way is to launch a CLI (update the Azure deployment based on your setup).
10+
To use the Jupyter AI Agents, an easy way is to launch a CLI (update the Azure deployment based on your setup).
1111

1212
```bash
13-
jupyter-ai-agent prompt \
13+
jupyter-ai-agents prompt \
1414
--url http://localhost:8888 \
1515
--token MY_TOKEN \
1616
--azure-ai-deployment-name gpt-40-mini \

docs/docs/deployments/in-kernel/index.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ This is not the recommended way and should be used only for development purposes
88

99
:::
1010

11-
To install Jupyter AI Agent, run the following command.
11+
To install Jupyter AI Agents, run the following command.
1212

1313
```bash
14-
pip install jupyter_ai_agent
14+
pip install jupyter_ai_agents
1515
```
1616

17-
The Jupyter AI Agent can directly interact with JupyterLab and the modifications made by the Jupyter AI Agent can be seen in real-time thanks to [Jupyter Real Time Collaboration](https://jupyterlab.readthedocs.io/en/stable/user/rtc.html).
17+
The Jupyter AI Agents can directly interact with JupyterLab and the modifications made by the Jupyter AI Agents can be seen in real-time thanks to [Jupyter Real Time Collaboration](https://jupyterlab.readthedocs.io/en/stable/user/rtc.html).
1818

1919
Make sure you have JupyterLab installed with the Collaboration extension.
2020

docs/docs/index.mdx

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ sidebar_position: 1
44

55
# Overview
66

7-
**Jupyter AI Agent** is a flexible and powerful solution for using and creating **✨ AI Agents** to interact with **📓 Jupyter Notebooks**
7+
**Jupyter AI Agents** is a flexible and powerful solution for using and creating **✨ AI Agents** to interact with **📓 Jupyter Notebooks**
88
with tools like `insert_cell`, `execute_cell`...
99

1010
:::info
1111

12-
**Jupyter AI Agent** empowers **AI models** to **interact** with and **modify** Jupyter Notebooks.
12+
**Jupyter AI Agents** empowers **AI models** to **interact** with and **modify** Jupyter Notebooks.
1313

1414
:::
1515

16-
![Jupyter AI Agent](https://assets.datalayer.tech/jupyter-ai-agent/ai-agent-prompt-demo-terminal.gif)
16+
![Jupyter AI Agents](https://assets.datalayer.tech/jupyter-ai-agents/ai-agent-prompt-demo-terminal.gif)
1717

1818
The Agent is equipped with [Tools](/docs/tools) such as adding Code Cells, inserting Markdown Cells, executing Code, enabling it to modify the Notebook comprehensively based on user instructions or by reacting to Notebook and Kernel events.
1919

20-
## What is an AI Agent?
20+
## What is an AI Agents?
2121

2222
An artificial intelligence (AI) agent is a system that **autonomously performs tasks** by designing workflows and **using tools**.
2323

@@ -26,12 +26,12 @@ Beyond processing language, these agents make decisions, solve problems, interac
2626
Leveraging Large Manguage Models (LLMs), AI agents process user inputs step-by-step and call external tools as needed to tackle
2727
complex tasks effectively.
2828

29-
## What Makes Jupyter AI Agent Unique?
29+
## What Makes Jupyter AI Agents Unique?
3030

3131
This agent is **innovative** as it is designed to **operate on the entire Notebook**, not just at the Cell level, enabling more comprehensive and seamless modifications.
3232

3333
```
34-
Jupyter AI Agent <-----------> JupyterLab
34+
Jupyter AI Agents <-----------> JupyterLab
3535
|
3636
| (RTC Real Time Collaboration)
3737
|
@@ -57,6 +57,6 @@ This powerful functionality is made possible through the Jupyter [NbModel](https
5757

5858
**We value your feedback!**
5959

60-
If you encounter any issues or have suggestions for improvement, please open a [GitHub issue](https://github.com/datalayer/jupyter-ai-agent/issues).
60+
If you encounter any issues or have suggestions for improvement, please open a [GitHub issue](https://github.com/datalayer/jupyter-ai-agents/issues).
6161

6262
:::

docs/docs/models/azure/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Azure OpenAI
22

3-
Jupyter AI Agent supports models from [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service).
3+
Jupyter AI Agents supports models from [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service).
44

55
Read the [Azure Documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai) to get the needed credentials and make sure you define them in the following environment variables.
66

docs/docs/use-cases/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The available [Agents](/docs/agents) support following use cases.
88
We are working on UI to easily interact with the Agents and plan on building new Agents to support more use cases.
99

1010
- **Creating a UI for Chatting with the Agent in JupyterLab** - Developing an interactive interface within JupyterLab
11-
where users can directly communicate with the Jupyter AI Agent, issuing commands and receiving real-time responses
11+
where users can directly communicate with the Jupyter AI Agents, issuing commands and receiving real-time responses
1212
in a conversational format.
1313
- **Building a Code Refactoring Agent** - Developing an agent that can automatically refactor code in Jupyter Notebooks,
1414
improving code quality, readability, and maintainability.

docs/docusaurus.config.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
/** @type {import('@docusaurus/types').DocusaurusConfig} */
88
module.exports = {
9-
title: '🪐 ✨ Jupyter AI Agent documentation',
9+
title: '🪐 ✨ Jupyter AI Agents documentation',
1010
tagline: 'Tansform your Notebooks into an interactive, AI-powered workspace that adapts to your needs!',
1111
url: 'https://datalayer.io',
1212
baseUrl: '/',
1313
onBrokenLinks: 'throw',
1414
onBrokenMarkdownLinks: 'warn',
1515
favicon: 'img/favicon.ico',
1616
organizationName: 'datalayer', // Usually your GitHub org/user name.
17-
projectName: 'jupyter-ai-agent', // Usually your repo name.
17+
projectName: 'jupyter-ai-agents', // Usually your repo name.
1818
markdown: {
1919
mermaid: true,
2020
},
@@ -31,7 +31,7 @@ module.exports = {
3131
disableSwitch: true,
3232
},
3333
navbar: {
34-
title: 'Jupyter AI Agent Docs',
34+
title: 'Jupyter AI Agents Docs',
3535
logo: {
3636
alt: 'Datalayer Logo',
3737
src: 'img/datalayer/logo.svg',
@@ -92,7 +92,7 @@ module.exports = {
9292
'aria-label': 'Bluesky',
9393
},
9494
{
95-
href: 'https://github.com/datalayer/jupyter-ai-agent',
95+
href: 'https://github.com/datalayer/jupyter-ai-agents',
9696
position: 'right',
9797
className: 'header-github-link',
9898
'aria-label': 'GitHub',
@@ -112,7 +112,7 @@ module.exports = {
112112
title: 'Docs',
113113
items: [
114114
{
115-
label: 'Jupyter AI Agent',
115+
label: 'Jupyter AI Agents',
116116
to: '/docs',
117117
},
118118
],
@@ -169,7 +169,7 @@ module.exports = {
169169
{
170170
docs: {
171171
sidebarPath: require.resolve('./sidebars.js'),
172-
editUrl: 'https://github.com/datalayer/jupyter-ai-agent/edit/main/',
172+
editUrl: 'https://github.com/datalayer/jupyter-ai-agents/edit/main/',
173173
},
174174
theme: {
175175
customCss: require.resolve('./src/css/custom.css'),

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@datalayer/jupyter-ai-agent-docs",
2+
"name": "@datalayer/jupyter-ai-agents-docs",
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {

docs/src/components/HomepageProducts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import styles from './HomepageProducts.module.css';
1111
const ProductList = [
1212
/*
1313
{
14-
title: 'Jupyter AI Agent',
14+
title: 'Jupyter AI Agents',
1515
Svg: require('../../static/img/product_1.svg').default,
1616
description: (
1717
<>
18-
Get started by creating a Jupyter platform in the cloud with Jupyter AI Agent. You will get Jupyter on Kubernetes with a cloud database and storage bucket to persist your notebooks and datasets.
18+
Get started by creating a Jupyter platform in the cloud with Jupyter AI Agents. You will get Jupyter on Kubernetes with a cloud database and storage bucket to persist your notebooks and datasets.
1919
</>
2020
),
2121
},

0 commit comments

Comments
 (0)