Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cardwizard/JupyterSearch
Utility to help search within a set of jupyter notebooks
https://github.com/cardwizard/JupyterSearch
jupyter jupyter-notebook python3 search whoosh
Last synced: 28 days ago
JSON representation
Utility to help search within a set of jupyter notebooks
- Host: GitHub
- URL: https://github.com/cardwizard/JupyterSearch
- Owner: cardwizard
- Created: 2018-04-10T09:09:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-01T00:58:06.000Z (about 5 years ago)
- Last Synced: 2024-08-08T23:22:56.531Z (5 months ago)
- Topics: jupyter, jupyter-notebook, python3, search, whoosh
- Language: Python
- Size: 4.88 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.```python
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
```