A simple solution is to open a terminal in JupyterLab/Jupyter Notebook and 
run the following:

grep --include='*.ipynb' --exclude-dir='.ipynb_checkpoints' -rliw . -e 'search 
query'

This will search your Jupyter server root recursively for files that 
contain the whole word (case-insensitive) "search query" and only return 
the file names of matches.

More 
info: 
https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux

On Tuesday, May 8, 2018 at 6:07:02 AM UTC-7, Tony Hirst wrote:
>
> Hi
>
> I'm working in an edu context, with notebooks being used to deliver 
> interactive 
> teaching materials, and one of the things we know students do is search 
> over reference/resource materials.
>
> I was wondering if anyone has looked at simple search solutions for searching 
> over jupyter notebooks, eg by dropping them into a lunr.js index using 
> lunr.py, 
> or adding them to sqlite (in which case, what sort of schema did you 
> use?).
>
> In first instance, I was thinking of just indexing the markdown cells in 
> each notebook, with a reference back to the original filepath. (I think 
> effective code search may be a whole other issue.) There are also issues 
> around 
> whether to have views back into a complete notebook, or link to nbconverted 
> html notebooks vs live running notebooks.
>
> V first steps in my thinking, just wondered if it's already work in progress 
> somewhere?
>
>
> --tony
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/dca3d2e9-5f66-4c56-a3e7-d854fac0e907%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to