All Projects → cardwizard → JupyterSearch

cardwizard / JupyterSearch

Licence: other
Utility to help search within a set of jupyter notebooks

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to JupyterSearch

wagtail-whoosh
Search backend for Wagtail CMS using Whoosh engine.
Stars: ✭ 23 (+43.75%)
Mutual labels:  whoosh
flask-whooshee
Customizable Flask - SQLAlchemy - Whoosh integration
Stars: ✭ 68 (+325%)
Mutual labels:  whoosh

JupyterSearch

Utility to help search within a set of jupyter notebooks.
I worked on creating a simple magic function to help us make this search easy and search across notebooks present in the current directory. It uses whoosh in the back-end to speed up the search. The code iterates through every cell in every notebook in your current directory.

How to use it?

  1. Download the search_magic.py file and keep it in your current directory. Follow these steps
  2. pip install whoosh
  3. Run the magic commands as follows in your Jupyter notebook. In the example shown below, I am trying to search for keyword tesseract.
In [1]: from search_magic import SearchMagic
In [2]: get_ipython().register_magics(SearchMagic)

In [3]: %create_index

In [4]: %search tesseract
Out[4]: Cell Number -> 2
        Notebook -> similarity.ipynb
        Notebook Execution Number -> 2
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].