Skip to content

fsspec/jupyter-projspec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

jupyter-projspec logo

Github Actions Status Binder

A JupyterLab extension that brings projspec project introspection directly into your development workflow. See at a glance what kind of project you're working in and explore its structure, metadata, and buildable artifacts.

Screenshot 2026-01-09 at 3 59 41โ€ฏPM

Features

๐Ÿท๏ธ Project Type Chips in File Browser

Colored badge chips appear below the breadcrumbs in the file browser, showing all detected project types for the current directory:

  • Instant recognition โ€” See ๐Ÿ Python Library, ๐Ÿ”ฎ Pixi, ๐Ÿ”€ Git Repository, etc. at a glance
  • Click to explore โ€” Clicking a chip opens the sidebar panel and scrolls to that spec's details
  • Unobtrusive โ€” Chips only appear when project specs are detected; completely hidden otherwise

๐Ÿ“‹ Project Spec Sidebar Panel

A dedicated right sidebar panel provides detailed project information:

  • Synced with file browser โ€” Automatically updates as you navigate directories
  • Expandable spec items โ€” Click to reveal contents and artifacts for each project type
  • Contents โ€” View metadata, dependencies, environment specs, and more
  • Artifacts โ€” See buildable outputs like wheels, conda packages, documentation

๐ŸŽจ Supported Project Types

jupyter-projspec recognizes many project types through projspec:

Category Types
Version Control Git Repository
Python Python Library, Poetry, uv, Pixi, Conda Project, Conda Recipe, PyScript, Briefcase
JavaScript Node.js, Yarn, JupyterLab Extension
Rust Rust Crate
Documentation mdBook, Read the Docs
Data & ML Data Package, Hugging Face Repo
IDEs VS Code, JetBrains IDE, Zed, NVIDIA AI Workbench

Requirements

  • JupyterLab >= 4.0.0
  • Python >= 3.10
  • projspec

Install

pip install jupyter-projspec

Usage

  1. Open JupyterLab and navigate to any project directory using the file browser
  2. Look for chips below the breadcrumbs โ€” they appear when projspec detects project types
  3. Click a chip or the sidebar icon to open the Project Spec panel
  4. Expand specs to explore contents (metadata, dependencies) and artifacts (buildable outputs)

Uninstall

pip uninstall jupyter-projspec

Troubleshoot

If you see the frontend extension but it's not working, verify the server extension is enabled:

jupyter server extension list

If the server extension is installed and enabled but you don't see the frontend extension:

jupyter labextension list

Contributing

Development Install

You will need NodeJS to build the extension package.

# Clone the repo
git clone https://github.com/fsspec/jupyter-projspec.git
cd jupyter-projspec

# Set up a virtual environment
python -m venv .venv
source .venv/bin/activate

# Install in development mode
pip install --editable ".[dev,test]"

# Link your development version with JupyterLab
jupyter labextension develop . --overwrite
jupyter server extension enable jupyter_projspec

# Build the extension (do this after each TypeScript change)
jlpm build

Development Workflow

Watch mode (recommended for active development):

# Terminal 1: Auto-rebuild on file changes
jlpm watch

# Terminal 2: Run JupyterLab
jupyter lab

With watch mode running, saved TypeScript changes rebuild automatically. Refresh your browser to see changes.

After editing Python (files in jupyter_projspec/):

  • Restart the JupyterLab server (no rebuild needed)

Development Uninstall

jupyter server extension disable jupyter_projspec
pip uninstall jupyter_projspec

Remove the symlink created by jupyter labextension develop:

jupyter labextension list  # Find labextensions folder location
# Remove the jupyter-projspec symlink from that folder

Testing

Server tests (Python):

pip install -e ".[test]"
pytest -vv -r ap --cov jupyter_projspec

Frontend tests (TypeScript):

jlpm test

Integration tests (Playwright):

See ui-tests/README.md for details.

Architecture

jupyter-projspec/
โ”œโ”€โ”€ src/                          # TypeScript frontend
โ”‚   โ”œโ”€โ”€ index.ts                  # Extension entry point
โ”‚   โ”œโ”€โ”€ components/               # React components
โ”‚   โ”‚   โ”œโ”€โ”€ ProjspecPanelComponent.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ ProjectView.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ SpecItem.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ ContentsView.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ ArtifactsView.tsx
โ”‚   โ”‚   โ””โ”€โ”€ ProjspecChips.tsx     # File browser chips
โ”‚   โ””โ”€โ”€ widgets/
โ”‚       โ”œโ”€โ”€ ProjspecPanel.ts      # Sidebar panel widget
โ”‚       โ””โ”€โ”€ ProjspecChipsWidget.ts
โ”œโ”€โ”€ jupyter_projspec/             # Python backend
โ”‚   โ”œโ”€โ”€ __init__.py               # Server extension setup
โ”‚   โ””โ”€โ”€ routes.py                 # API route handlers
โ”œโ”€โ”€ style/                        # CSS styles
โ””โ”€โ”€ schema/                       # JupyterLab settings schema

API Endpoints

Endpoint Method Description
/jupyter-projspec/scan GET Scan a directory and return projspec data

Roadmap

Future enhancements being considered:

  • MAKE buttons โ€” Execute artifact builds directly from the UI
  • Build output display โ€” Show stdout/stderr from artifact builds
  • File browser navigation โ€” Click built artifacts to reveal them
  • Real-time streaming โ€” Live output for long-running builds
  • jupyter-fsspec integration โ€” Support for remote filesystems

AI Coding Assistant Support

This project includes an AGENTS.md file with coding standards for JupyterLab extension development. Compatible with AI assistants that support the AGENTS.md standard.

License

BSD-3-Clause

Acknowledgments

Built on projspec by the fsspec team.

About

Integrating project descriptions into jupyter-lab

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published