0
$\begingroup$

Is there a method to search across multiple notebooks for each in a given list of function or symbol name?

The input should be a list of function or defined symbols, and the output would be an Association with these function names as keys, and all the notebooks in which they appear as Values

I'm writing a computational book project that consists of ~30 notebooks, one chapter per notebook, plus additional (appendix) notebooks that contain functions referenced through the book.

I need to sort the function definitions, for example by the chapter in which they first appear. I could manually extract the desired function names to populate the input list.

Not necessary but nice would be an option to return the type of cell (Input vs Text) in which each function appears.

Since the notebooks are text files, I think one could do this in python or similar unix utility but would be nice to do in WL directly.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.