Skip to main content
100%

command line tool for searching notebook code locally and in knowledge repo

✓ Published0🌍 Public
Aandrewdblevins
Last edited Apr 6, 2018
Created on Apr 6, 2018

This command-line tool searches local IPython notebooks for a text pattern by first using macOS Spotlight’s `mdfind` to locate all `.ipynb` files, then parsing each notebook’s JSON with `jq` to extract code cell sources. It pipes the extracted code through `sed` for string cleanup, `pygmentize` for syntax highlighting, and finally `grep` to match the user-supplied pattern. Matching results are printed with the file path and highlighted code block, enabling fast, targeted code discovery across a project directory.

AI-generated description

Similar vizzes