Metadata-Version: 2.4
Name: jupyterhub-pilot
Version: 0.7.0
Summary: Agentic AI coding partner for JupyterHub and IPython
Author-email: Wajoud <wajoudnoorani59@gmail.com>
License: MIT License
        
        Copyright (c) 2026 Wajoud
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/wajoud/jupyterhub-pilot
Project-URL: Repository, https://github.com/wajoud/jupyterhub-pilot.git
Project-URL: Bug Tracker, https://github.com/wajoud/jupyterhub-pilot/issues
Project-URL: AWS EC2 Deployment, https://github.com/wajoud/jupyterhub-pilot/blob/main/AWS_EC2_DEPLOYMENT.md
Project-URL: Vault Integration, https://github.com/wajoud/jupyterhub-pilot/blob/main/docs/SECURITY.md#4-vault-secret-injection
Project-URL: Monitoring Dashboard, https://github.com/wajoud/jupyterhub-pilot/blob/main/docs/MONITORING.md
Keywords: jupyter,jupyterhub,ai,llm,ipython,magic-commands,ssh-spawner
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Framework :: Jupyter
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.32.0
Provides-Extra: hub
Requires-Dist: jupyterhub<7,>=5.3; extra == "hub"
Requires-Dist: oauthenticator>=16.0; extra == "hub"
Requires-Dist: jupyterhub-idle-culler>=1.4; extra == "hub"
Requires-Dist: paramiko<6.0,>=3.4.0; extra == "hub"
Requires-Dist: websockets>=12.0; extra == "hub"
Provides-Extra: worker
Requires-Dist: jupyterhub<7,>=5.3; extra == "worker"
Requires-Dist: notebook>=7.0.0; extra == "worker"
Requires-Dist: psutil>=6.0.0; extra == "worker"
Requires-Dist: websockets>=12.0; extra == "worker"
Requires-Dist: pandas>=2.2; extra == "worker"
Requires-Dist: polars>=1.0; extra == "worker"
Requires-Dist: duckdb>=1.1; extra == "worker"
Requires-Dist: duckdb-engine>=0.13; extra == "worker"
Requires-Dist: jupysql>=0.10; extra == "worker"
Requires-Dist: scikit-learn>=1.5; extra == "worker"
Requires-Dist: matplotlib>=3.8; extra == "worker"
Requires-Dist: plotly>=5.20; extra == "worker"
Requires-Dist: papermill>=2.6; extra == "worker"
Requires-Dist: jupyterlab-git>=0.50; extra == "worker"
Requires-Dist: nbdime>=4.0; extra == "worker"
Provides-Extra: ai
Requires-Dist: ipython>=8.26.0; extra == "ai"
Requires-Dist: litellm>=1.55.0; extra == "ai"
Requires-Dist: mcp<3.0,>=1.0.0; extra == "ai"
Provides-Extra: dev
Requires-Dist: black; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-anyio; extra == "dev"
Requires-Dist: anyio; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: types-requests; extra == "dev"
Requires-Dist: types-paramiko; extra == "dev"
Requires-Dist: tornado; extra == "dev"
Dynamic: license-file

# JupyterHub-Pilot

One JupyterHub for many teams. Each team gets its own worker VM, and every notebook has an AI assistant.

- **A worker VM per team.** The Hub starts each user's notebook server over SSH on their team's worker, so one heavy team cannot slow down another.
- **A Linux account per user**, with cgroup memory and CPU limits on every notebook server.
- **AI magics** in every notebook: `%do`, `%fix`, `%review`, `%rework` (Ollama, OpenAI, Claude or Gemini through LiteLLM, or an MCP server).
- **Live monitoring** at `/hub/monitoring`: each worker's CPU, memory, disk and network, and each user's usage against their limits.
- **Google login**, SQLite state that survives Hub restarts, optional Vault secrets, and a built-in load test.

## Install

Ubuntu 24.04 or 26.04: one Hub VM plus one worker VM per team, on the same private network.

**Hub**

```bash
sudo apt update && sudo apt install -y python3-pip
sudo pip3 install --break-system-packages --ignore-installed "jupyterhub-pilot[hub]"
sudo jupyterhub-pilot install-hub
```

It asks for the Hub's private IP, your admin username and the first worker's IP, and prints an SSH key and an agent token for the workers.

**Each worker**

```bash
sudo apt update && sudo apt install -y python3-pip
sudo pip3 install --break-system-packages --ignore-installed "jupyterhub-pilot[worker,ai]"
sudo jupyterhub-pilot install-worker
```

**Then, on the Hub**

```bash
sudo jupyterhub-pilot add-worker team_beta <worker-private-ip>   # one per extra team
sudo nano /etc/jupyterhub-pilot/hub.env                          # Google client, or test passwords
sudo systemctl enable --now jupyterhub
```

Put [Caddy](https://caddyserver.com/) in front for HTTPS, create a group per team in **Admin → Groups**, and users can start their servers.

## In a notebook

```python
%load_ext jupyterhub_pilot.extension
%do load data/sales.csv and plot monthly revenue
```

`%do` writes the code into the next cell for you to check and run.

## Learn more

- [Full guide](https://github.com/wajoud/jupyterhub-pilot#readme): HTTPS, test login, teams, upgrading, troubleshooting
- [AWS EC2 walkthrough](https://github.com/wajoud/jupyterhub-pilot/blob/main/AWS_EC2_DEPLOYMENT.md)
- [AI magics](https://github.com/wajoud/jupyterhub-pilot/blob/main/docs/AI_MAGICS.md) · [Monitoring](https://github.com/wajoud/jupyterhub-pilot/blob/main/docs/MONITORING.md) · [Security](https://github.com/wajoud/jupyterhub-pilot/blob/main/docs/SECURITY.md)
- [Releases](https://github.com/wajoud/jupyterhub-pilot/releases) · [Issues](https://github.com/wajoud/jupyterhub-pilot/issues)

MIT licensed.
