IPython Notebook extension enabling search, replace, and replace all functionality with regular expression support.
This extension works only in IPython notebook v.2.x.x.
These installation instructions are for "vanilla" IPython Notebook setup. If you have themed and customized your IPython Notebook, I will assume you know how to patch this into custom.css and custom.js files.
Copy custom.css and custom.js files into:
~/.ipython/profile_default/static/custom
You will overwrite two existing place-holding files with same names.
Copy search.js into:
~/.ipython/nbextensions
Copy custom.css and custom.js files into:
C:\Users\YourUserName\.ipython\profile_default\static\custom
You will overwrite two existing place-holding files with same names.
Copy search.js into:
C:\Users\YourUserName\.ipython\nbextensions
Search: Crtl - f
Find next: Ctrl - g
Find previous: Ctrl - Shift - g
Replace: Ctrl - Shift - f
Replace all: Ctrl - Shift - r
Search: Cmd - f
Find next: Cmd - g
Find previous: Cmd - Alt - g
Replace: Cmd - Alt - f
Replace all: Cmd - Alt - r
The extension works in cell edit mode and operates only on currently edited cell.
Invoke find / search dialog with Crtl - f or Cmd - f, input search term into the dialog text box (RegEx must be enclosed between two forward slashes /regex_search/), and hit Enter. This will highlight all found instances in yellow, with selected one being highlighted in dark yellow. Move forward Ctrl - g, Cmd - g, and backward Ctrl - Shift - g, Cmd - Alt - g. Selected instance can be modified in place.
Invoke replace dialog with Ctrl - Shift - f or Cmd - Alt - f, input replace-search term into the dialog text box (RegEx must be enclosed between two forward slashes /regex_search/), and hit Enter. Input replace-with term into the dialog text box, and hit Enter. Click Yes or No buttons to replace highlighted instance or Stop to exit replace mode.
Invoke replace all with Ctrl - Shift - r or Cmd - Alt - r, input replace-search term into the dialog text box (RegEx must be enclosed between two forward slashes /regex_search/), and hit Enter. Input replace-all term into the dialog text box, and hit Enter.
This extension was compiled from IPython contrib repo and Joel Moberg's repo, and uses CodeMirror search.js for its functionality.