{"id":50797098,"url":"https://github.com/nebari-dev/nb-nebi-kernels","last_synced_at":"2026-06-12T15:30:31.251Z","repository":{"id":341886701,"uuid":"1171916594","full_name":"nebari-dev/nb-nebi-kernels","owner":"nebari-dev","description":"Jupyter KernelSpecManager that discovers kernels from nebi-tracked pixi workspaces","archived":false,"fork":false,"pushed_at":"2026-03-04T03:41:19.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T12:05:58.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nebari-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-03T18:47:17.000Z","updated_at":"2026-03-04T03:41:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nebari-dev/nb-nebi-kernels","commit_stats":null,"previous_names":["openteams-ai/nb-nebi-kernels"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nebari-dev/nb-nebi-kernels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebari-dev%2Fnb-nebi-kernels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebari-dev%2Fnb-nebi-kernels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebari-dev%2Fnb-nebi-kernels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebari-dev%2Fnb-nebi-kernels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nebari-dev","download_url":"https://codeload.github.com/nebari-dev/nb-nebi-kernels/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebari-dev%2Fnb-nebi-kernels/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34251773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-12T15:30:29.778Z","updated_at":"2026-06-12T15:30:31.247Z","avatar_url":"https://github.com/nebari-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nb-nebi-kernels\n\nA custom Jupyter `KernelSpecManager` that automatically discovers [Nebi](https://github.com/nebari-dev/nebi)-tracked [Pixi](https://pixi.sh/) workspaces and exposes each environment as a launchable Jupyter kernel.\n\n## How it works\n\n1. Discovers locally-tracked workspaces via `nebi workspace list`\n2. Enumerates pixi environments per workspace via `pixi workspace environment list`\n3. Each (workspace, environment) pair appears as a selectable kernel in Jupyter\n4. Kernels launch via `pixi run` in the workspace directory with full environment isolation\n\n## Installation\n\n```bash\npip install nb-nebi-kernels\n```\n\nThat's it — the kernel spec manager is automatically configured when installed into your JupyterLab environment.\n\n### Prerequisites\n\n- [Nebi CLI](https://github.com/nebari-dev/nebi) on your PATH\n- [Pixi](https://pixi.sh/) on your PATH\n- At least one tracked nebi workspace (`nebi init` in a pixi project)\n\n## Usage\n\nOnce installed, any nebi-tracked pixi workspace appears as a kernel in JupyterLab or Notebook:\n\n- A workspace `data-science` with environments `default` and `gpu` shows as two kernels: **data-science (default)** and **data-science (gpu)**\n- A workspace `web-app` with only the default environment shows as just **web-app**\n\nIf nebi or pixi are not installed, or no workspaces are tracked, Jupyter falls back to its default kernels — it never crashes.\n\n## Development\n\n```bash\n# Install dev dependencies\npixi install -e dev\n\n# Run tests\npixi run test\n\n# Run tests with coverage\npixi run test-cov\n\n# Run linting\npixi run lint\n\n# Format code\npixi run format\n\n# Run type checking\npixi run typecheck\n```\n\n## Architecture\n\n```\nsrc/nb_nebi_kernels/\n├── __init__.py      # Exports NebiKernelSpecManager\n├── discovery.py     # Subprocess calls to nebi + pixi CLIs\n├── launcher.py      # Kernel launcher with pixi environment isolation\n└── manager.py       # KernelSpecManager subclass (core logic)\n```\n\n- **discovery.py** — Parses `nebi workspace list` output, calls `pixi workspace environment list` per workspace. Filters out missing workspaces. Returns structured data.\n- **launcher.py** — Clears PIXI_* environment variables to prevent inheriting parent context, then exec's `pixi run` in the workspace directory.\n- **manager.py** — Subclasses `KernelSpecManager`, implements `find_kernel_specs()` and `get_kernel_spec()`. Merges parent kernels with nebi-discovered ones.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebari-dev%2Fnb-nebi-kernels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnebari-dev%2Fnb-nebi-kernels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebari-dev%2Fnb-nebi-kernels/lists"}