{"id":20101589,"url":"https://github.com/ploomber/jupyai","last_synced_at":"2025-05-06T06:33:33.212Z","repository":{"id":216746312,"uuid":"735211274","full_name":"ploomber/jupyai","owner":"ploomber","description":"JupyAI adds AI capabilities to JupyterLab.","archived":true,"fork":false,"pushed_at":"2024-01-25T00:54:04.000Z","size":257,"stargazers_count":31,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T00:54:43.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ploomber.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-24T04:20:34.000Z","updated_at":"2025-02-18T22:11:57.000Z","dependencies_parsed_at":"2024-01-12T14:32:06.677Z","dependency_job_id":"c1cbc0f8-6c7e-4293-a7b1-da16af252a1a","html_url":"https://github.com/ploomber/jupyai","commit_stats":null,"previous_names":["ploomber/jupyai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ploomber%2Fjupyai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ploomber%2Fjupyai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ploomber%2Fjupyai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ploomber%2Fjupyai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ploomber","download_url":"https://codeload.github.com/ploomber/jupyai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252633912,"owners_count":21779944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:25:52.515Z","updated_at":"2025-05-06T06:33:32.860Z","avatar_url":"https://github.com/ploomber.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JupyAI\n\n\u003e [!TIP]\n\u003e Deploy AI apps for free on [Ploomber Cloud!](https://ploomber.io/?utm_medium=github\u0026utm_source=jupyai)\n\n\n[![Github Actions Status](https://github.com/ploomber/jupyai/workflows/Build/badge.svg)](https://github.com/ploomber/jupyai/actions/workflows/build.yml)\n\nJupyAI adds AI capabilities to JupyterLab:\n\n- Code generation (generate code based on a prompt)\n- Code modifications (update existing code)\n- Code fixing (fix broken code)\n\nhttps://github.com/ploomber/jupyai/assets/989250/18447b68-3ee2-434e-b626-18fc35cb822f\n\n## Requirements\n\n- JupyterLab \u003e= 4.0.0\n\n## Install\n\n```bash\npip install jupyai\n```\n\n## Usage\n\n```bash\n# set your OpenAI key\nexport OPENAI_API_KEY=YOURKEY\n\n# start JupyterLab\njupyter lab\n```\n\nOnce installed, you'll see a magic wand on each cell, click it to trigger code completion. You can also use CMD + ENTER (see demo at the top of this file).\n\n\n## User notes\n\nTo switch the model (defaults to `gpt-3.5-turbo`), open JupyterLab preferences, type JupyAI and you'll see\na text field to change the model name. For example, to switch to GPT-4, enter `gpt-4`.\n\nTo see the valid values, consult\n[OpenAI's documentation.](https://platform.openai.com/docs/models/overview)\n\n![](docs/static/settings.png)\n\n## Development notes\n\n- The prompts are hardcoded, it'd be better to add an option to customize them\n- Only OpenAI is supported for now\n\nPRs welcome!\n\n\n## Uninstall\n\nTo remove the extension, execute:\n\n```bash\npip uninstall jupyai\n```\n\n## Troubleshoot\n\nIf you are seeing the frontend extension, but it is not working, check\nthat the server extension is enabled:\n\n```bash\njupyter server extension list\n```\n\nIf the server extension is installed and enabled, but you are not seeing\nthe frontend extension, check the frontend extension is installed:\n\n```bash\njupyter labextension list\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## Alternatives\n\n[Jupyter AI](https://github.com/jupyterlab/jupyter-ai) is another extension that\nbrings AI capabilities to Jupyter. It has a lot of great features!\n\nHowever, Jupyter AI generates code in the cell's output; hence, you need to copy-paste\ncode if you want to run it or if you want to update existing code. JupyAI adds\ncode to the cell itself, allowing you to edit it and run it as you'd normally do.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fploomber%2Fjupyai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fploomber%2Fjupyai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fploomber%2Fjupyai/lists"}