a Jupyter server extension that supports file globbing

This extension allows you to use file globbing in Jupyter.

You issue a URL like /api/globbing/some/path/*.ipynb and it returns a list of all the files that match the glob pattern

Installation

pip install jupyter-server-globbing

Usage

// from the browser console
response = await fetch("/api/globbing/some/path/*.ipynb")
files = await response.json()

the result is a list of objects with the following structure:

  {
    "path": "some/path/file1.ipynb",  // relative to the server root
    "type": "file" // or "directory"
  }

jupyter-server-globbing